Skip to content

Commit b528409

Browse files
Merge pull request #45 from cspr-rad/check-for-na
await-until-block-n: retry if N/A was returned by get_chain_height
2 parents 02b1de1 + 781fe86 commit b528409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmds/chain/await/until_block_n.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function _main()
2222
local CURRENT=$(get_chain_height)
2323
log "current block height = $CURRENT :: future block height = $FUTURE"
2424

25-
while [ "$CURRENT" -lt "$FUTURE" ];
25+
while [ "$CURRENT" != "N/A" && "$CURRENT" -lt "$FUTURE" ];
2626
do
2727
log "awaiting future block :: sleeping 2 seconds"
2828
sleep 2.0

0 commit comments

Comments
 (0)