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

Fix gossip update propagation #7554

Merged

Conversation

rustyrussell
Copy link
Contributor

We didn't force-propagate new gossip to our peers as it happened, only on reconnect.

We didn't actually check that we *send* the refreshed gossip, just
that we print the message saying we're going to.

So check that everyone received updated gossip when this happens.

Signed-off-by: Rusty Russell <[email protected]>
In particular, those who've filtered it out.

This currently fails, as expected.

Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell added gossip Highlight - Stability and Security Refinement of basics, prevention and cures labels Aug 12, 2024
@rustyrussell rustyrussell added this to the v24.08 milestone Aug 12, 2024
We're going to need this for the next commit.

Signed-off-by: Rusty Russell <[email protected]>
When a peer connects, we always send all our own gossip (even if they
had set the timestamp filters to filter it out).  But we weren't
forcing it out to them when it changed, so this logic only applied to
unstable or frequently-restarting nodes.

So now, we tell all the peers whenever we tell gossipd about our new
gossip.

Fixes: ElementsProject#7276
Signed-off-by: Rusty Russell <[email protected]>
Changelog-Changed: Protocol: We now send current peers our changed gossip (even if they set timestamp_filter otherwise), not just on reconnect.
@rustyrussell rustyrussell merged commit 48259af into ElementsProject:master Aug 12, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gossip Highlight - Stability and Security Refinement of basics, prevention and cures
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant