Skip to content

Instantly share code, notes, and snippets.

@tynes
Created April 11, 2019 04:27
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 tynes/4123a82d2e01e8abb3377e8d54b12091 to your computer and use it in GitHub Desktop.
Save tynes/4123a82d2e01e8abb3377e8d54b12091 to your computer and use it in GitHub Desktop.
#!/bin/bash
# pull gmax's lattest banlist, replace ./bitcoin-cli
# with bcoin-cli and write it to disk as a bash script
# WARNING: please inspect the file before executing it
# works correctly as of 4/10/19
curl -s https://people.xiph.org/~greg/banlist.cli.txt \
| sed 's/\.\/bitcoin-cli/bcoin-cli\ rpc/g' \
| sed '1s/^/#!\/bin\/bash\n\n/' > banlist.sh
# Don't make random files that you download from
# the internet executable until you know exactly
# what they are doing. banlist.sh should call
# the rpc method setban on many known IPs that
# exhibit poor behavior as peers/attempt to
# deanonymize the network
# chmod +x banlist.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment