Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: On startup, auto-connect to onion messaging peers #88

Open
orbitalturtle opened this issue Jan 5, 2024 · 0 comments
Open

Feature: On startup, auto-connect to onion messaging peers #88

orbitalturtle opened this issue Jan 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@orbitalturtle
Copy link
Collaborator

orbitalturtle commented Jan 5, 2024

Feature Description

Some users might want to use LNDK simply to forward onion messages on the network, increasing the anonymity set (which is relatively quite small right now!). For users of LNDK who aren't currently connected to nodes that support onion messaging, I think it'd be nice to offer an automatic solution.

To make the process automatic, we we could add an option (maybe enabled by a config flag --connect-to-onion-peers or something), which would use lnd's describegraph command to look up which nodes support onion messages and connect to a random few.

How long do connections persist?

One thing @carlaKC and I discussed here is whether connections without a channel would persist for very long. In CLN I learned from one of the devs that a peer won't disconnect if a channel isn't initiated, "but it won't seek to reconnect either." From eyeballing connections made with my own node, it seems like they'd stay connected for a couple of days.

Perhaps upon disconnect, we can just reconnect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant