Speed up wait on BTC script

This commit is contained in:
Taylor Helsper 2019-11-03 21:59:43 -06:00
parent 02c4bd1136
commit f3f27bafb5

View File

@ -6,8 +6,8 @@ set -e
# Wait to see if bitcoind is synced
echo "Checking if Bitcoin is synced..."
while [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; do
echo "Bitcoin not synced, sleeping for 60 seconds..."
/bin/sleep 60s
echo "BTC not synced, sleeping 30s"
/bin/sleep 30s
done
# And finally, make sure bitcoind responds to API requests