Skip to content

Commit 24b3ca5

Browse files
committed
Add block delta to the logs
1 parent 5edd83d commit 24b3ca5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/get_block_tip_height.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ do
99
NODE_HEIGHT=$(curl -sk https://node$NODE.$LOCATION.mempool.space/api/v1/blocks/tip/height)
1010
echo $(echo node$NODE.$LOCATION.mempool.space) - $NODE_HEIGHT
1111
if [ "$NODE_HEIGHT" -ne "$BASE_HEIGHT" ]; then
12-
echo $(echo node$NODE.$LOCATION.mempool.space) is not in sync
12+
COUNT=$((BASE_HEIGHT-NODE_HEIGHT))
13+
echo $(echo node$NODE.$LOCATION.mempool.space) is not in sync. delta: $COUNT
1314
IN_SYNC=false
1415
fi
1516
done

0 commit comments

Comments
 (0)