mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 03:30:49 +02:00
give bitcoin more time to startup on first init
This commit is contained in:
parent
35bb82b638
commit
80db360447
@ -69,12 +69,12 @@ bitcoinRunning=0
|
|||||||
loopcount=0
|
loopcount=0
|
||||||
while [ ${bitcoinRunning} -eq 0 ]
|
while [ ${bitcoinRunning} -eq 0 ]
|
||||||
do
|
do
|
||||||
>&2 echo "# (${loopcount}/100) checking if ${network}d is running ... "
|
>&2 echo "# (${loopcount}/200) checking if ${network}d is running ... "
|
||||||
bitcoinRunning=$(${network}-cli getblockchaininfo 2>/dev/null | grep "initialblockdownload" -c)
|
bitcoinRunning=$(${network}-cli getblockchaininfo 2>/dev/null | grep "initialblockdownload" -c)
|
||||||
sleep 2
|
sleep 2
|
||||||
sync
|
sync
|
||||||
loopcount=$(($loopcount +1))
|
loopcount=$(($loopcount +1))
|
||||||
if [ ${loopcount} -gt 100 ]; then
|
if [ ${loopcount} -gt 200 ]; then
|
||||||
/home/admin/XXdebugLogs.sh
|
/home/admin/XXdebugLogs.sh
|
||||||
echo "***********************************"
|
echo "***********************************"
|
||||||
echo "FAIL: ${network} failed to start :("
|
echo "FAIL: ${network} failed to start :("
|
||||||
|
Loading…
Reference in New Issue
Block a user