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

Add mainnet neutrino peers #1403

Merged
merged 4 commits into from
Jan 21, 2024
Merged

Add mainnet neutrino peers #1403

merged 4 commits into from
Jan 21, 2024

Conversation

niteshbalusu11
Copy link
Collaborator

Signed-off-by: Nitesh Balusu [email protected]

  • Added more mainnet neutrino peers.
  • Switched from neutrino.connect to neutrino.addpeer

Now LND will attempt to get info from multiple peers, neutrino.connect is forcing lnd to get block data from one node, if that fails then it doesn't attempt to get data from more peers even if you add them.
Now if the user wants to switch the node in the config, their node will become one of the nodes blixt gets block data from instead of being the only node to talk to.

Copy link

vercel bot commented Dec 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blixt-wallet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2024 8:54pm

@djkazic
Copy link
Collaborator

djkazic commented Dec 28, 2023

utACK, some thoughts on this change:

  • What happens if a majority of the peers in this list are offline? (aka put some fake peers in to replace most) -- what's the expected runtime behavior from lnd when it's suggested peers are bad? Does it do its own peer discovery when we don't use neutrino.connect?
  • Is the latency issue solved, or is this collection of nodes still biased geographically enough that there are latency deadzones globally?

@hsjoberg
Copy link
Owner

What happens if a majority of the peers in this list are offline? (aka put some fake peers in to replace most) -- what's the expected runtime behavior from lnd when it's suggested peers are bad? Does it do its own peer discovery when we don't use neutrino.connect?

I think that Neutrino would still find other peers via DNS seed.

src/state/index.ts Outdated Show resolved Hide resolved
@djkazic
Copy link
Collaborator

djkazic commented Dec 28, 2023

What happens if a majority of the peers in this list are offline? (aka put some fake peers in to replace most) -- what's the expected runtime behavior from lnd when it's suggested peers are bad? Does it do its own peer discovery when we don't use neutrino.connect?

I think that Neutrino would still find other peers via DNS seed.

In theory, yes. However, in practice I've seen failure to resolve peers via DNS seed as a very common recurring issue in user logs.

@djkazic
Copy link
Collaborator

djkazic commented Dec 28, 2023

New changes LGTM

Signed-off-by: Nitesh Balusu <[email protected]>
@hsjoberg hsjoberg merged commit 7335568 into master Jan 21, 2024
2 of 3 checks passed
@hsjoberg hsjoberg deleted the add-neutrino-peers branch January 21, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants