-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
discovery: prevent broadcast of anns received during initial graph sync #3366
Conversation
There was a problem hiding this 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.
discovery/gossiper.go
Outdated
emittedAnnouncements..., | ||
) | ||
} | ||
announcements.AddMsgs( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, fixed.
c87ec0f
to
cdcba46
Compare
Can be rebased now! |
cdcba46
to
442e58f
Compare
Rebased |
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.
442e58f
to
e15e524
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
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.