-
Notifications
You must be signed in to change notification settings - Fork 107
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
feat(state): Store history trees by height in the non-finalized state #4928
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4928 +/- ##
==========================================
- Coverage 79.18% 78.95% -0.24%
==========================================
Files 309 309
Lines 38783 38789 +6
==========================================
- Hits 30710 30625 -85
- Misses 8073 8164 +91 |
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.
Thanks, nice work on the PartialEq
refactor.
I think we've fixed all the outstanding bugs, so I'm hoping that we're done with admin merges. Can you start your next PR by rebasing it on the add-hist-trees-by-height branch? If that won't work, here's what I expect will happen with CI:
If PR #4918 fails, you can try doing a If all that doesn't work out, I'll see what I can do tomorrow morning. |
This PR is a low priority, but I'm marking it with Medium so it merges a bit earlier, so that Marek can use it for other work. |
@Mergifyio update |
✅ Branch has been successfully updated |
@Mergifyio update |
✅ Branch has been successfully updated |
Motivation
In order to implement #4824, the non-finalized state needs to store history
trees by their height, so that it can send the history tree corresponding to the
root block to the finalized state when committing the root block.
Solution
This PR adds
history_trees_by_height
toChain
in the non-finalized state.Closes #4837.
Follow Up Work
Finish #4721.