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

initial connect sends same node info hundreds of times #1072

Closed
robtex opened this issue Apr 10, 2018 · 2 comments
Closed

initial connect sends same node info hundreds of times #1072

robtex opened this issue Apr 10, 2018 · 2 comments
Labels
beginner Issues suitable for new developers enhancement Improvements to existing features / behaviour graph p2p Code related to the peer-to-peer behaviour

Comments

@robtex
Copy link

robtex commented Apr 10, 2018

Background

lnd sends a lot of msg 257 for the same node at initial connect
i've seen some nodes being sent 155 times within first few seconds. probably once per channel or something.
probably should be easy to limit to only once per node at first connect, and cut down the traffic a lot!

Your environment

  • version of lnd
  • which operating system (uname -a on *Nix)
  • version of btcd, bitcoind, or other backend
  • any other relevant environment details

Steps to reproduce

Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

@Roasbeef
Copy link
Member

Actually re-read this issue, and it points out an optimization: to de-dup node announcements during the current "naive" initial table dump.

@Roasbeef Roasbeef reopened this Apr 10, 2018
@Roasbeef Roasbeef added enhancement Improvements to existing features / behaviour p2p Code related to the peer-to-peer behaviour beginner Issues suitable for new developers graph labels Apr 10, 2018
@robtex
Copy link
Author

robtex commented Apr 13, 2018

thank you.
and i was going to check this ticket to re-read your pointers about the new protocol features :)
the enhanced new protocols to bundle stuff together and resuming from a certain point is very interesting as well, but yes i agree de-duping is probably a good beginner task and quite quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner Issues suitable for new developers enhancement Improvements to existing features / behaviour graph p2p Code related to the peer-to-peer behaviour
Projects
None yet
Development

No branches or pull requests

2 participants