Skip to content

Commit

Permalink
Ensure that the EIP1559DenominatorCanyon is set if the canyon overrid…
Browse files Browse the repository at this point in the history
…e is set (#175)
  • Loading branch information
mdehoog authored Oct 30, 2023
1 parent 237170b commit 634fcca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *trie.Database, gen
if overrides != nil && overrides.OverrideOptimismCanyon != nil {
config.CanyonTime = overrides.OverrideOptimismCanyon
config.ShanghaiTime = overrides.OverrideOptimismCanyon
if config.Optimism != nil && config.Optimism.EIP1559DenominatorCanyon == 0 {
config.Optimism.EIP1559DenominatorCanyon = 250
}
}
}
}
Expand Down

0 comments on commit 634fcca

Please sign in to comment.