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
|
||||
fi
|
||||
|
||||
if (( $balance > $balanceInit )); then
|
||||
if (( $balance > $balanceInit )) && [ $stateSyncFound != "true" ]; then
|
||||
stateSyncTime=$(( SECONDS - start_time ))
|
||||
stateSyncFound="true"
|
||||
fi
|
||||
|
||||
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 ))
|
||||
checkpointFound="true"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue