Skip to content

Instantly share code, notes, and snippets.

@marcw
Created February 13, 2019 23:07
Show Gist options
  • Save marcw/75075f8ebcd61c6b64b4ffc1dbe217eb to your computer and use it in GitHub Desktop.
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! :)
#!/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