ban-knots.sh

Author: Anonymous awcn0l

Expire: Never

#!/bin/bash echo "Running ban script" FOR_BAN=$(bitcoin-cli -conf=/etc/bitcoin.conf getpeerinfo | jq --raw-output '.[] | select(.subver | contains("Knots")) | .addr | split("((?::))(?:[0-9]+)$"; null) | .[0]') echo "Addresses for ban: $FOR_BAN" for address in $FOR_BAN; do bitcoin-cli -conf=/etc/bitcoin.conf setban "$address" "add" 1893456000 true done echo "Ban script finished"

Attached Files

10/10/2024

JavaScript is not enabled in your browser. Most features and paste content is missing . Switch to full experience by editing url from /nojs/[link] to /share/[link]