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

feat: announce to lightnodes #2351

Merged
merged 1 commit into from
Jul 22, 2021
Merged

feat: announce to lightnodes #2351

merged 1 commit into from
Jul 22, 2021

Conversation

acud
Copy link
Member

@acud acud commented Jul 21, 2021

Right now we announce nodes to light nodes only when they connect. This does not allow them to know about new nodes as they join the network. This also causes the integration tests to fail, as light nodes may connect early to the bootnode, never knowing anything about any other node in the network, leaving them only with a connection to the bootnode, which results in the tests to flake much more, since they overdraft with the bootnode very quickly, which then eventually results in errors in retrieval.

This PR rectifies this by notifying light nodes about new full nodes as they join the network.


This change is Reviewable

@acud acud added the in progress ongoing development , hold out with review label Jul 21, 2021
@acud acud force-pushed the libp2p-announceto branch from ca719c3 to 3571b4c Compare July 22, 2021 07:10
@acud acud force-pushed the libp2p-announceto branch from 3571b4c to ee4e2db Compare July 22, 2021 08:55
@acud acud requested review from janos, mrekucci and notanatol July 22, 2021 08:57
@acud acud self-assigned this Jul 22, 2021
@acud acud added ready for review The PR is ready to be reviewed and removed in progress ongoing development , hold out with review labels Jul 22, 2021
Copy link
Member

@janos janos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@acud acud merged commit 23cee42 into master Jul 22, 2021
@acud acud deleted the libp2p-announceto branch July 22, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull-request ready for review The PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants