Created
February 13, 2019 23:07
-
-
Save marcw/75075f8ebcd61c6b64b4ffc1dbe217eb to your computer and use it in GitHub Desktop.
Connect to all tor onion peers in the lightning network node graph. It works on a Raspiblitz v0.99! :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lncli describegraph | jq '.nodes[] | select(.addresses[].addr | contains("onion")) | .pub_key + "@" + .addresses[0].addr' | xargs -L1 lncli connect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment