mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
bool types
This commit is contained in:
parent
c6079a4d4e
commit
529e81bd92
1 changed files with 5 additions and 5 deletions
|
|
@ -6,8 +6,8 @@ balanceInit=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec
|
||||||
#delay=600
|
#delay=600
|
||||||
#echo "Wait ${delay} seconds for state-sync..."
|
#echo "Wait ${delay} seconds for state-sync..."
|
||||||
#sleep $delay
|
#sleep $delay
|
||||||
stateSyncFound=false
|
stateSyncFound="false"
|
||||||
checkpointFound=false
|
checkpointFound="false"
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
@ -26,7 +26,7 @@ do
|
||||||
#exit 1
|
#exit 1
|
||||||
else
|
else
|
||||||
echo "State Sync occured!"
|
echo "State Sync occured!"
|
||||||
stateSyncFound=true
|
stateSyncFound="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id)
|
checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id)
|
||||||
|
|
@ -36,10 +36,10 @@ do
|
||||||
#exit 1
|
#exit 1
|
||||||
else
|
else
|
||||||
echo "Found checkpoint ID:" $checkpointID
|
echo "Found checkpoint ID:" $checkpointID
|
||||||
checkpointFound=true
|
checkpointFound="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $stateSyncFound && $checkpointFound )); then
|
if (( $stateSyncFound == "true" & $checkpointFound == "true" )); then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue