mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 05:58:06 +00:00
16 lines
386 B
Bash
Executable File
16 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
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
|
|
done
|
|
|
|
# And finally, make sure bitcoind responds to API requests
|
|
bitcoin-cli -datadir=/mnt/hdd/mynode/bitcoin -rpcwait getblockchaininfo
|
|
|
|
exit 0 |