Skip to content

Commit

Permalink
Merge pull request #45 from cspr-rad/check-for-na
Browse files Browse the repository at this point in the history
await-until-block-n: retry if N/A was returned by get_chain_height
  • Loading branch information
asladeofgreen authored Sep 6, 2024
2 parents 02b1de1 + 781fe86 commit b528409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/chain/await/until_block_n.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function _main()
local CURRENT=$(get_chain_height)
log "current block height = $CURRENT :: future block height = $FUTURE"

while [ "$CURRENT" -lt "$FUTURE" ];
while [ "$CURRENT" != "N/A" && "$CURRENT" -lt "$FUTURE" ];
do
log "awaiting future block :: sleeping 2 seconds"
sleep 2.0
Expand Down

0 comments on commit b528409

Please sign in to comment.