π¬Updates
FOLDER=.ojo
# find out RPC port
echo -e "\033[0;32m$(grep -A 3 "\[rpc\]" ~/$FOLDER/config/config.toml | egrep -o ":[0-9]+")\033[0m"
PORT=<enter_your_port>
curl -s localhost:$PORT/consensus_state | jq '.result.round_state.height_vote_set[0].prevotes_bit_array' && \
curl -s localhost:$PORT/consensus_state | jq '.result.round_state.height_vote_set[0].precommits_bit_array'UPD π on (Update Height: )
cd $HOME/ojo
git pull
git checkout
make build
$HOME/ojo/build/ojod version --long | grep -e version -e commit
#
# commit:
# AFTER THE NETWORK IS STOPPED ON THE REQUIRED BLOCK!!!
systemctl stop ojod
mv $HOME/ojo/build/ojod $(which ojod)
ojod version --long | grep -e version -e commit
#
systemctl restart ojod && journalctl -u ojod -f -o catLast updated