|
|
@ -171,7 +171,8 @@ waitUntilChainNetworkIsReady() |
|
|
|
blockchainsize=$(sudo du -shbc /mnt/hdd/${network} 2>/dev/null | head -n1 | awk '{print $1;}') |
|
|
|
if [ ${#blockchainsize} -gt 0 ]; then |
|
|
|
if [ ${blockchainsize} -lt ${minSize} ]; then |
|
|
|
if [ "${state}" != "resync" ]; then |
|
|
|
isSyncing=$(sudo ls -la /mnt/hdd/bitcoin/blocks/.selfsync | grep -c '.selfsync') |
|
|
|
if [ ${isSyncing} -eq 0 ]; then |
|
|
|
echo "blockchainsize(${blockchainsize})" |
|
|
|
echo "Missing Blockchain Data (<${minSize}) ..." |
|
|
|
clienterror="missing blockchain" |
|
|
|