core: apply overrides to new chainconfig

This commit is contained in:
MariusVanDerWijden 2025-04-28 21:21:36 +02:00
parent 846c14e21f
commit 838d798083

View file

@ -365,6 +365,9 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *triedb.Database, g
return nil, common.Hash{}, nil, errors.New("missing head header") return nil, common.Hash{}, nil, errors.New("missing head header")
} }
newCfg := genesis.chainConfigOrDefault(ghash, storedCfg) newCfg := genesis.chainConfigOrDefault(ghash, storedCfg)
if err := overrides.apply(newCfg); err != nil {
return nil, common.Hash{}, nil, err
}
// Sanity-check the new configuration. // Sanity-check the new configuration.
if err := newCfg.CheckConfigForkOrder(); err != nil { if err := newCfg.CheckConfigForkOrder(); err != nil {