Conversation
…Database to run by itself
mslipper
approved these changes
Aug 19, 2025
janjakubnanista
pushed a commit
that referenced
this pull request
Aug 19, 2025
…Database to run by itself (#17127)
leopoldjoy
pushed a commit
to leopoldjoy/optimism
that referenced
this pull request
Aug 22, 2025
…Database to run by itself (ethereum-optimism#17127)
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.
Description
Safe head db doesn't record when the L2 genesis becomes safe (for many reasons but not possible to make a proposal for the genesis block because it has to be after the anchor state block). When the test ran after the previous test, it's starting head was non-zero but when it ran by itself the initial safe block would often be 0 and then the test failed because the safe head db didn't go all the way back to 0.
Now it records the safe head after it has advanced at least once so it's always non-zero. Still requires the safe head data to persist across the restart which is the key requirement.
Metadata
fixes #17083