Add block delta to the logs

This commit is contained in:
Felipe Knorr Kuhn 2023-09-23 13:30:54 -07:00
parent 5edd83d496
commit 24b3ca559d
No known key found for this signature in database
GPG Key ID: 79619B52BB097C1A

View File

@ -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