From 24b3ca559d89bf9665111c28c9e5e1c27e63b2c5 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn Date: Sat, 23 Sep 2023 13:30:54 -0700 Subject: [PATCH] Add block delta to the logs --- scripts/get_block_tip_height.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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