Skip to content
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

Skip genesis state check for transitioned networks #245

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

trianglesphere
Copy link
Contributor

@trianglesphere trianglesphere commented Feb 16, 2024

Description

On restarts, nodes that had completed snap sync without using a datadir on transitioned networks would re-commit the genesis state. This would set the local block back to the genesis block and wipe away the state after snap sync. Because op-geth is not able to execute the STF pre-bedrock, it is ok to skip storing this data.

Tests

Tested on op-goerli.

@trianglesphere trianglesphere changed the title Skip genesis state check for transitionned networks Skip genesis state check for transitioned networks Feb 16, 2024
@trianglesphere trianglesphere marked this pull request as ready for review February 16, 2024 19:30
core/genesis.go Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Stammler <seb@oplabs.co>
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@trianglesphere trianglesphere merged commit abc8821 into optimism Feb 20, 2024
10 checks passed
@trianglesphere trianglesphere deleted the jg/snap_sync_init_bug branch February 20, 2024 18:45
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.

3 participants