diff --git a/scripts/get_block_tip_height.sh b/scripts/get_block_tip_height.sh index 861be0406..603193bb8 100644 --- a/scripts/get_block_tip_height.sh +++ b/scripts/get_block_tip_height.sh @@ -9,7 +9,8 @@ do NODE_HEIGHT=$(curl -sk https://node$NODE.$LOCATION.mempool.space/api/v1/blocks/tip/height) echo $(echo node$NODE.$LOCATION.mempool.space) - $NODE_HEIGHT if [ "$NODE_HEIGHT" -ne "$BASE_HEIGHT" ]; then - echo $(echo node$NODE.$LOCATION.mempool.space) is not in sync + COUNT=$((BASE_HEIGHT-NODE_HEIGHT)) + echo $(echo node$NODE.$LOCATION.mempool.space) is not in sync. delta: $COUNT IN_SYNC=false fi done