ConsVP
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.
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)
- Update binary to the latest version:
cvp --update
Installation
go install -v github.com/bcdevtools/consvp/cmd/cvp@latest
# Require go 1.19+
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-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 |
Check binary version
cvp --version
Update binary
cvp --update
# Actual command: go install -v github.com/bcdevtools/consvp/cmd/cvp@latest
π We are very pleased to accompany blockchain developers around the world π