diff --git a/core/genesis.go b/core/genesis.go index 6e71afd61c..18aa1bbd4f 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -176,8 +176,9 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig } } - // Get the existing chain configuration. + // Get the new chain configuration for genesis block. newcfg := genesis.configOrDefault(stored) + // Get the existing chain configuration for genesis block. storedcfg := rawdb.ReadChainConfig(db, stored) if storedcfg == nil { log.Warn("Found genesis block without chain config")