Skip to content

Instantly share code, notes, and snippets.

@Rav3nPL
Created August 3, 2021 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rav3nPL/749a6d9f9479ae4218a998e05bfd47bf to your computer and use it in GitHub Desktop.
Save Rav3nPL/749a6d9f9479ae4218a998e05bfd47bf to your computer and use it in GitHub Desktop.
Script to run every hour to separate stuck masternodes for day
#!/bin/sh
for BADIPS in $(/root/bin/tecracoin-cli getpeerinfo|grep -a17 'height": 46999'|grep '"addr": "'|cut -d '"' -f4|cut -d ":" -f1)
do
/root/bin/tecracoin-cli setban $BADIPS add 86400
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment