Repository navigation
FlatDb: set long-finality reorg backstop to EIP-8252 retention window #16457
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
Open
nerolation
wants to merge
8
commits into
NethermindEth:master
Choose a base branch
from
nerolation:eip8252-reorg-retention
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+192
−13
Open
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5a454ab
FlatDb: set long-finality reorg backstop to EIP-8252 retention window
nerolation ab3bbed
FlatDb: state EIP-8252 retention as finality-aware in docs and test
nerolation 1bf38bf
FlatDb: keep the whole EIP-8252 retention window reconstructable unde…
nerolation 48a656d
FlatDb: revert strict-window retention guard; keep finality-aware docs
nerolation 4187a83
FlatDb: frame the retention window honestly as a finality-stall backstop
nerolation cd12ad6
FlatDb: clamp the forced-persist fold to the EIP-8252 window floor
nerolation 70ceed4
FlatDb: don't warn on a deliberately deferred forced fold; test windo…
nerolation 22cb8f8
FlatDb: prove the floor block's state reconstructs, not just that a s…
nerolation File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
[P2] The higher default lets payload validation discard the forkchoice-selected head’s state without a forkchoice change. With finality stalled at persisted base B and the selected head at B+100,000, the old backstop would already have folded past B, so
NewPayloadHandler.ShouldProcessBlockcould not execute a competing child of B. The new default retains B and lets that branch execute.EthereumMergeleaves the block-tree head unchanged, butFlatDbManager.AddSnapshotrecords each newly committed payload as the last committed state. If the competing branch reaches B+262,145 while forkchoice still selects the original head,ForcedPersistSeedfollows the competing tip.FindSnapshotToPersistonly checks for a conflicting finalized root at the fold endpoint, which is above B.RemoveSiblingAndDescendentsthen drops the selected branch’s snapshots if the branches have different state roots there, leaving the node unable to execute the next child of its selected head locally. Use the forkchoice-selected head for the depth and seed, and verify the fold endpoint lies on its ancestry before pruning. EIP-3675, Fork choice rule