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

core,params: Don't rewind chain on pre-genesis time changes #257

Draft
wants to merge 1 commit into
base: optimism
Choose a base branch
from

Conversation

sebastianst
Copy link
Member

@sebastianst sebastianst commented Feb 28, 2024

Description

  • Fixes an underflow bug when calculating the timestamp to rewind a chain to.
  • Ignores chain rewinds if the timestamp changes are pre-genesis.

Tests

Will test on a devnet.

Additional context

We had a chain rewind on our internal sepolia-devnet-0 on Jan 29 because the Canyon activation time changed from 0 to 1698436800 (Fri Oct 27 20:00:00 UTC 2023) when we set Base's Canyon activation time as the canonical time in the superchain-registry but didn't overwrite it to 0 again.

This change allows us to overwrite the Canyon activation time on sepolia-devnet-0 back to 0 without causing another chain rewind.

We might want to upstream (parts of) this.

Metadata

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.

1 participant