-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: do not trigger rewind behaviour when modifying pre-genesis hard…
…fork times / blocks (#332) * skeetch out a test for config change pre genesis * expand test to multiple test cases * thread genesisTimestamp down to ChainConfig.CheckCompatible * add failing test cases * refactor test * add all optimism forks to checkCompatible This is brittle in general and longer term we need a solution that requires less boiler plate. * fix: pregenesis fork changes are not incompatible * fix integration test * lint * remove genesis number from checkCompatible it should always be 0 * allow for nil genesis in SetupGenesisBlockWithOverride * move test to its own file * use shorter test names * remove duplicate test case * reorder struct fields to reduce diff * CheckCompatible accepts a *uint64 genesisTimestamp This allows us to handle the case where the genesis itself (and therefore the genesis timestamp) is undefined. We handle that by declaring all time stamps as POST genesis, so they can't pass the compatibilty check via the new escape hatch. * remove optimism test * remove newline
- Loading branch information
Showing
3 changed files
with
81 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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