Skip to content

jiuyunyue/valsta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

valsta

For cosmos blockchain validator to collect validator information

Easy Start

# build valsta
make build
# start at height 400000
./build/valsta start 841500 1412246  -g peer0.testnet.uptick.network:9090 -r http://peer0.testnet.uptick.network:26657/
# query voters
./build/valsta q voters -g peer0.testnet.uptick.network:9090 -r http://peer0.testnet.uptick.network:26657/
# query sign times 
./build/valsta q signTimes <address> -g peer0.testnet.uptick.network:9090 -r http://peer0.testnet.uptick.network:26657/
# query sign first height 
./build/valsta q signHeight <address> -g peer0.testnet.uptick.network:9090 -r http://peer0.testnet.uptick.network:26657/

Use Guide

There are only two steps required to use valsta

Init

use valsta init to create database valsta and table valdator_infos

Start

use valsta start [startHeight] [endHeight] -g <grpc address> -r <rpc address> to start valsta. If you want to have a test with your local cosmos-base blockchain , just use valsta start [startHeight] [endHeight], the flag -g have default value localhost:9090 and the flag -r have default value http://localhost:26657

Start with nohup

nohup ./build/valsta start 841500 1412246  -g peer0.testnet.uptick.network:9090 -r http://peer0.testnet.uptick.network:26657/  > work.log 2>&1 & 

About

For cosmos blockchain validator to collect validator information

Resources

Stars

Watchers

Forks

Packages

No packages published