op-reth: flush buffered proof tail on shutdown - #22090
Open
HDauven wants to merge 1 commit into
Open
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #22089.
Engine::runpreviously waited only for an already in-flight proof-history persistence job when its action channel disconnected. If fewer blocks than the persistence threshold remained buffered, a clean shutdown dropped that tail even though the ExEx had already emittedFinishedHeightfor it. On restart, the ExEx WAL did not replay those blocks and the persisted proof window stayed permanently behind the execution tip.This change drains any existing save, schedules the remaining memory buffer and waits for that final save before the collector thread exits. The regression test covers a one-block tail below the normal five-block threshold and verifies that it reaches persistent storage.