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: block commit pox-descendant check in nakamoto #4927

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

kantai
Copy link
Member

@kantai kantai commented Jun 28, 2024

This fixes an issue that showed up in the naka-1 testnet. The leader block commit op in nakamoto is committing to a parent block, not a new block, so there was previously essentially an "off by one" bug in the block commit op evaluation.

This also adds a test for this behavior.

@kantai kantai requested a review from a team as a code owner June 28, 2024 18:24
jferrant
jferrant previously approved these changes Jun 28, 2024
@jferrant
Copy link
Collaborator

Thanks for finding this Aaron. Is this at all related to the change I made that had to do with how to select the parent to build atop of in the forked_tenure test? Specifically #4674 ? (asking for my own clarity of the situation)

jcnelson
jcnelson previously approved these changes Jun 28, 2024
@kantai
Copy link
Member Author

kantai commented Jun 28, 2024

Thanks for finding this Aaron. Is this at all related to the change I made that had to do with how to select the parent to build atop of in the forked_tenure test? Specifically #4674 ? (asking for my own clarity of the situation)

I don't think so-- at least not directly related. This issue ended up being kind of downstream of some other issues in the testnet, but it was the issue that led to the testnet stalling out completely.

@kantai kantai dismissed stale reviews from jferrant and jcnelson via 08e554f June 28, 2024 20:02
@kantai kantai added this pull request to the merge queue Jul 2, 2024
Merged via the queue into develop with commit 8fdda32 Jul 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants