Release v1.1.0
Improvements
- (codec) #42 Add new flag
--codec
to specify codec for streaming - (errors) #43 Queue message and print after T-UI closed to prevent message lost & improve error message content
- (errors) #44 Minimize error message content
Breaking changes
- (deps) #41 Update deps cvp-streaming-core v1.1.0
- (broadcast) #45 Stop app when broadcast failed with response http status 404
- (deps) #46 Update deps cvp-streaming-core v1.1.1
cvp is a pvtop-like utility, plus miracles
A simple utility for watching pre-vote status on Tendermint/CometBFT chains. It will print out the current pre-vote status for each validator in the validator set. Useful for watching pre-votes during an upgrade or other network event causing a slowdown.
This is a full rework of pvtop by @blockpane and plus some miracles
- Live-streaming mode (view sample), sharing pre-voting information to everyone:
cvp --streaming
- Display Block Hash fingerprint which the validator voted on
- Allow scrolling on terminal UI (thanks to @freak12techno)
Basic usage
cvp
# => use http://localhost:26657
# For streaming mode
cvp https://example.com:26657 --streaming
# or resume streaming in case of mistakenly exit
cvp https://example.com:26657 --resume-streaming
cvp 19000
# => use http://localhost:19000
cvp https://rpc.cosmos.network
# => use https://rpc.cosmos.network
cvp https://rpc.example-consumer.network https://rpc.cosmos.network
# => use https://rpc.example-consumer.network as consumer network RPC endpoint
# and use https://rpc.cosmos.network as producer network RPC endpoint (typically Cosmos Hub)
Notes:
- Default fetching consensus state is 3 seconds, can reduce to 1s by adding
-r
flag. - In case interrupted from streaming mode, should resume instead of start a new session. Resume by adding
--resume-streaming
flag and provide the latest session id and key printed in previous run. - Streaming session has default expiration time is 12 hours.
Pre-voting information format
Pre-Vote | Pre-Commit | Block Hash | Order | Voting Power | Moniker |
---|---|---|---|---|---|
✅ | ❌ | C0FF | 1 | 11.03% | Val1 |
🤷 | ❌ | 0000 | 2 | 10.23% | Val2 |
❌ | ❌ | ---- | 3 | 08.07% | Val3 |
✅ | ✅ | C0FF | 4 | 01.15% | Val4 |