lndk-org / lndk

MIT License
76 stars 19 forks source link

Option to auto connect to onion-supporting peers #98

Open orbitalturtle opened 4 months ago

orbitalturtle commented 4 months ago

This PR implements part of #88, by introducing a config option users can turn on to automatically connect to random onion-supporting peers using the network graph.

Also squeezed in a couple of typo fixes.

I think a good followup would be to try to reconnect to other onion-supporting peers once the number of onion-supporting peers falls below a certain threshold. So something like, once we receive a disconnect event, we check how many remaining onion-supporting peers there are and connect accordingly.