mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix: incorrect condition
This commit is contained in:
parent
f3573f086d
commit
296a9c4ff5
1 changed files with 10 additions and 6 deletions
|
|
@ -18,16 +18,20 @@ do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $balance > $balanceInit )) && [ $stateSyncFound != "true" ]; then
|
if (( $balance > $balanceInit )); then
|
||||||
stateSyncTime=$(( SECONDS - start_time ))
|
if [ $stateSyncFound != "true" ]; then
|
||||||
stateSyncFound="true"
|
stateSyncTime=$(( SECONDS - start_time ))
|
||||||
|
stateSyncFound="true"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id)
|
checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id)
|
||||||
|
|
||||||
if [ $checkpointID != "null" ] && [ $checkpointFound != "true"]; then
|
if [ $checkpointID != "null" ]; then
|
||||||
checkpointTime=$(( SECONDS - start_time ))
|
if [ $checkpointFound != "true" ]; then
|
||||||
checkpointFound="true"
|
checkpointTime=$(( SECONDS - start_time ))
|
||||||
|
checkpointFound="true"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $stateSyncFound == "true" ] && [ $checkpointFound == "true" ]; then
|
if [ $stateSyncFound == "true" ] && [ $checkpointFound == "true" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue