solanamonitoring
solanamonitoring copied to clipboard
2.1.11 vote credits output changed
There was a format change for solana vote-account $voteAccount
Current line in monitor.sh (not working):
validatorCreditsCurrent=$($cli vote-account $voteAccount | grep credits/slots | cut -d ":" -f 2 | cut -d "/" -f 1 | awk 'NR==1{print $1}')
Fix:
validatorCreditsCurrent=$($cli vote-account $voteAccount | grep 'Credits:' | awk '{print $2}')