From 634fcca4f61f529ae97f27221059a7a80fa9339c Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Mon, 30 Oct 2023 09:21:06 -1000 Subject: [PATCH] Ensure that the EIP1559DenominatorCanyon is set if the canyon override is set (#175) --- core/genesis.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/genesis.go b/core/genesis.go index 298835d7a2..bc346d5ace 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -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 + } } } }