-
Notifications
You must be signed in to change notification settings - Fork 111
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 an incorrect assertion when the block locator is at the tip #2789
Conversation
76e4fe9
to
e1227d3
Compare
The macOS failure looks like a spurious timing issue:
|
This might have been triggered by receiving block hash gossips from the new Zebra code.
Specifically: * `BlockLocator` (populated state only) * `FindBlockHashes` * `FindBlockHeaders`
200acc3
to
e5db28c
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.
Looks good. Just a minor suggestion in a doc comment.
Co-authored-by: Alfredo Garcia <[email protected]>
Motivation
Zebra panics when it's at the tip, and it's asked for a block locator for that tip.
(This might depend on whether there's a stop height, and whether integer checks are optimised out.)
This might have been triggered by receiving block hash gossips from the new Zebra code in PR #2729.
Solution
BlockLocator
,FindBlockHashes
, andFindBlockHeaders
Review
Anyone can review this panic fix, but I think @oxarbitrage might have looked at this code recently?
Reviewer Checklist