solanamonitoring icon indicating copy to clipboard operation
solanamonitoring copied to clipboard

2.1.11 vote credits output changed

Open DataKnox opened this issue 1 year ago • 0 comments

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}')

DataKnox avatar Feb 17 '25 21:02 DataKnox