Skip to content

Instantly share code, notes, and snippets.

@jkowalcz
jkowalcz / wait-for-consensus.sh
Created July 15, 2021 14:30
Wait until out of consensus (Helium HNT validator)
#!/bin/bash
while [ `docker exec validator miner info in_consensus` = "true" ]
do
echo -n "`date +"%Y-%m-%d--%T-%Z"` " >> /var/log/consensus-wait.log
echo "Waiting until out of Consesus" >> /var/log/consensus-wait.log
sleep 120
done
echo -n `date +"%Y-%m-%d--%T-%Z"` >> /var/log/consensus-wait.log
echo -n " `docker exec validator miner info in_consensus` " >> /var/log/consensus-wait.log