Skip to content

Instantly share code, notes, and snippets.

@skwp
Created November 29, 2018 20:47
Show Gist options
  • Save skwp/dca012796ecad1c3b828ad78a4303691 to your computer and use it in GitHub Desktop.
Save skwp/dca012796ecad1c3b828ad78a4303691 to your computer and use it in GitHub Desktop.
function bitcoinAddnode() {
nodeToAdd=$1
dnsLookup $nodeToAdd
bitcoinExec "addnode $ip:$BITCOIN_PORT add"
}
for peer in $newline_peerlist; do
bitcoinAddnode $peer
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment