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

connectd: better diagnostics on invalid gossip_store entries. #5573

Merged

Conversation

rustyrussell
Copy link
Contributor

Should help diagnose #5572
which hit the invalid csum on a >64MB entry, if it happens again.

Changelog-None

Should help diagnose ElementsProject#5572
which hit the invalid csum on a >64MB entry, if it happens again.

Signed-off-by: Rusty Russell <[email protected]>
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK c90d798

CI failure relate to #5570

Copy link
Collaborator

@endothermicdev endothermicdev left a comment

Choose a reason for hiding this comment

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

I guess this will tell us if it's purely an offset issue as opposed to something like a bad length / length mask. We may also want to validate the message length/CRC before returning the find_gossip_store_by_timestamp offset as gossip_store_next traversal was a little more thorough. Maybe that's a another PR.
ACK c90d798

@niftynei niftynei added this to the v0.12.1 milestone Sep 7, 2022
@niftynei niftynei merged commit dc56b2a into ElementsProject:master Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants