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

discovery: prevent broadcast of anns received during initial graph sync #3366

Conversation

wpaulino
Copy link
Contributor

@wpaulino wpaulino commented Aug 1, 2019

There's no need to broadcast these as we assume that online nodes have already received them. For nodes that were offline, they should receive them as part of their initial graph sync.

Depends on #3355.

@wpaulino wpaulino requested a review from halseth as a code owner August 1, 2019 22:16
@wpaulino wpaulino added this to the 0.8.0 milestone Aug 1, 2019
@wpaulino wpaulino added enhancement Improvements to existing features / behaviour gossip v0.8.0 optimization labels Aug 1, 2019
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🎾

Will kick off a few new initial bootstrap test runs on testnet to confirm that we no longer broadcast externally.

emittedAnnouncements...,
)
}
announcements.AddMsgs(
Copy link
Member

Choose a reason for hiding this comment

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

Why omit the check? It lets us avoid grabbing a mutex FWIW.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, fixed.

@wpaulino wpaulino force-pushed the prevent-initial-gossip-sync-broadcast branch 2 times, most recently from c87ec0f to cdcba46 Compare August 7, 2019 00:58
@Roasbeef
Copy link
Member

Can be rebased now!

@wpaulino wpaulino force-pushed the prevent-initial-gossip-sync-broadcast branch from cdcba46 to 442e58f Compare August 13, 2019 01:28
@wpaulino
Copy link
Contributor Author

Rebased

@wpaulino wpaulino requested review from cfromknecht and removed request for halseth August 21, 2019 01:21
There's no need to broadcast these as we assume that online nodes have
already received them. For nodes that were offline, they should receive
them as part of their initial graph sync.
@wpaulino wpaulino force-pushed the prevent-initial-gossip-sync-broadcast branch from 442e58f to e15e524 Compare August 21, 2019 19:07
Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

@wpaulino wpaulino merged commit c4ba557 into lightningnetwork:master Aug 21, 2019
@wpaulino wpaulino deleted the prevent-initial-gossip-sync-broadcast branch August 21, 2019 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to existing features / behaviour gossip optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants