mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 01:41:01 +01:00
Add block delta to the logs
This commit is contained in:
parent
5edd83d496
commit
24b3ca559d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user