Files
shell-scripts/monitor-validator-lum.sh
T

11 lines
344 B
Bash
Executable File

#!/bin/bash
LOCATION=`dirname "$0"`
missed_blocks=`curl -s 'https://api-lum.cosmostation.io/v1/staking/validator/uptime/lumvaloper1krkmg6f0sjwalkx3nq39yt0upxgys7alme6lps' | jq '.uptime | length'`
if [ "$missed_blocks" -gt 0 ]; then
${LOCATION}/discord.sh general "Lum Network is missing ${missed_blocks} blocks out of the last 100."
fi