Skip to content

op-reth: flush buffered proof tail on shutdown - #22090

Open
HDauven wants to merge 1 commit into
ethereum-optimism:developfrom
HDauven:fix/op-reth-flush-proofs-on-shutdown
Open

op-reth: flush buffered proof tail on shutdown#22090
HDauven wants to merge 1 commit into
ethereum-optimism:developfrom
HDauven:fix/op-reth-flush-proofs-on-shutdown

Conversation

@HDauven

@HDauven HDauven commented Jul 28, 2026

Copy link
Copy Markdown

Closes #22089.

Engine::run previously 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 emitted FinishedHeight for 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.

@HDauven
HDauven requested a review from a team as a code owner July 28, 2026 21:37
@joshklop joshklop self-assigned this Jul 28, 2026
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.

op-reth proofs history can lag permanently after clean shutdown

2 participants