Search
Duplicate
Try Notion
🚀
Launch the network
After setting up the configuration for our validator node, we just need to start our nodes, after we get 66% of our nodes connected, the chain will start to produce blocks.
We are going to run it in a screen to be able to easily follow the logs
screen -S evmosd ~/evmosd start --api.enable true
Bash
NOTE: we are just using api.enable as true to be able to use the consensus.py script.
Consensus.py
There is a cool script that can be run inside a validator node to check how the consensus is going.
git clone https://github.com/Northa/consensus.git cd consensus python3 consensus.py
Bash
It will print something like this:
~/consensus$ python3 consensus.py Bugreports discord: Yep++#9963 Chain-id: evmos_9999-1 Height: 14733 Round: 0 step: 4 prevotes_bit_array: 1000/2000 = 0.50 Online: 1/2 1 ONLINE hanchon2 50.0% 2 OFFLINE hanchon1 50.0%
Bash
Cli:
We can also run a the cli command:
curl -s http://localhost:26657/consensus_state | jq '.result.round_state.height_vote_set[0].prevotes_bit_array'
Bash
Response:
"BA{2:x_} 1000/2000 = 0.50"
Bash
The elements inside the curly brackets are validators sorted by voting power.
X indicates that the validator already signed
_ indicates that the validator hasn’t signed
0.5 is the current consensus, we need more than 0.66 in order to create blocks