|
|
@@ -151,9 +151,6 @@ func (e *GenesisMismatchError) Error() string {
|
|
|
//
|
|
|
// The returned chain configuration is never nil.
|
|
|
func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig, common.Hash, error) {
|
|
|
- return SetupGenesisBlockWithOverride(db, genesis, nil)
|
|
|
-}
|
|
|
-func SetupGenesisBlockWithOverride(db ethdb.Database, genesis *Genesis, constantinopleOverride *big.Int) (*params.ChainConfig, common.Hash, error) {
|
|
|
if genesis != nil && genesis.Config == nil {
|
|
|
return params.AllEthashProtocolChanges, common.Hash{}, errGenesisNoConfig
|
|
|
}
|
|
|
@@ -196,10 +193,6 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, genesis *Genesis, constant
|
|
|
|
|
|
// Get the existing chain configuration.
|
|
|
newcfg := genesis.configOrDefault(stored)
|
|
|
- if constantinopleOverride != nil {
|
|
|
- newcfg.ConstantinopleBlock = constantinopleOverride
|
|
|
- newcfg.PetersburgBlock = constantinopleOverride
|
|
|
- }
|
|
|
storedcfg := rawdb.ReadChainConfig(db, stored)
|
|
|
if storedcfg == nil {
|
|
|
log.Warn("Found genesis block without chain config")
|