Skip to content

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

Merged
wpaulino merged 1 commit into
lightningnetwork:masterfrom
wpaulino:prevent-initial-gossip-sync-broadcast
Aug 21, 2019
Merged

wpaulino merged 1 commit into
lightningnetwork:masterfrom
wpaulino:prevent-initial-gossip-sync-broadcast

Conversation

@wpaulino

@wpaulino wpaulino commented Aug 1, 2019

Copy link
Copy Markdown
Contributor

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

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Member

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.

Comment thread discovery/gossiper.go Outdated

Copy link
Copy Markdown
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
Copy Markdown
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.

@Roasbeef

Copy link
Copy Markdown
Member

Can be rebased now!

@wpaulino

Copy link
Copy Markdown
Contributor Author

Rebased

@wpaulino
wpaulino requested review from cfromknecht and removed request for halseth August 21, 2019 01:21
Comment thread discovery/gossiper.go Resolved
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 requested a review from cfromknecht August 21, 2019 19:07

@cfromknecht cfromknecht left a comment

Copy link
Copy Markdown
Contributor

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.

3 participants