ban-knots.sh

Author:

| Size: 388 bytes

|

#!/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"

Comments

No comments yet

Comment attachments are limited to 30MB total. For larger files, create a paste and share the link.

Earn credits

Earn credits by commenting or creating pastes! Create a paste.

3/27/2024

Not all user generated content is reviewed by AnonPaste. If you believe this paste violates our community guideline or terms of service, please report it here.

Initializing...

Preparing the app. This may take a moment before app is ready.

AnonPaste is a user-generated content hosting service. The platform and its operators are not responsible for content posted by users.