add checkpoint delay

This commit is contained in:
Arpit Temani 2022-11-15 16:34:02 +05:30
parent 2543e974ee
commit 278f7e7239

View file

@ -23,6 +23,11 @@ if (( $balance <= $balanceInit )); then
exit 1
fi
delayCheckpoint=300
echo "Wait ${delayCheckpoint} seconds for checkpoint..."
sleep $delayCheckpoint
checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id)
if [ $checkpointID == "null" ]; then