mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: timer condition
This commit is contained in:
parent
1da5b36da9
commit
f3573f086d
1 changed files with 2 additions and 2 deletions
|
|
@ -18,14 +18,14 @@ do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $balance > $balanceInit )); then
|
if (( $balance > $balanceInit )) && [ $stateSyncFound != "true" ]; then
|
||||||
stateSyncTime=$(( SECONDS - start_time ))
|
stateSyncTime=$(( SECONDS - start_time ))
|
||||||
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)
|
||||||
|
|
||||||
if [ $checkpointID != "null" ]; then
|
if [ $checkpointID != "null" ] && [ $checkpointFound != "true"]; then
|
||||||
checkpointTime=$(( SECONDS - start_time ))
|
checkpointTime=$(( SECONDS - start_time ))
|
||||||
checkpointFound="true"
|
checkpointFound="true"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue