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: TreeState::on_new_head fork and reorg handling #10232

Merged
merged 6 commits into from
Aug 10, 2024

Conversation

fgimenez
Copy link
Member

@fgimenez fgimenez commented Aug 9, 2024

Closes #10179

Fixes the checks in on_new_head for the fork points and how we determine if we are extending the canonical chain or handling a properreorg. Includes a new test case that reproduces a hive failure.

Also includes fixes in TestBlockBuilder to make the blocks built with it work with newPayload by including correct signatures and some additional test refactors

@github-actions github-actions bot added the C-bug An unexpected or incorrect behavior label Aug 9, 2024
@fgimenez fgimenez force-pushed the fgimenez/fix-on-new-head-reorg-handling branch from 228ecc2 to 791e679 Compare August 9, 2024 16:06
@fgimenez fgimenez force-pushed the fgimenez/fix-on-new-head-reorg-handling branch from 791e679 to f311f11 Compare August 9, 2024 20:45
@fgimenez fgimenez marked this pull request as ready for review August 9, 2024 20:51
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

cool

@mattsse mattsse added this pull request to the merge queue Aug 10, 2024
Merged via the queue into main with commit faa38ce Aug 10, 2024
36 checks passed
@mattsse mattsse deleted the fgimenez/fix-on-new-head-reorg-handling branch August 10, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BlockNotfound in treestate warning
2 participants