mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Remove duplicate code
Remove CheckConfigForkOrder call because CheckConfigForkOrder has already been called in overrides.apply() a few lines above
This commit is contained in:
parent
a8a4804895
commit
2701162da9
1 changed files with 0 additions and 5 deletions
|
|
@ -377,11 +377,6 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *triedb.Database, g
|
|||
return nil, common.Hash{}, nil, err
|
||||
}
|
||||
|
||||
// Sanity-check the new configuration.
|
||||
if err := newCfg.CheckConfigForkOrder(); err != nil {
|
||||
return nil, common.Hash{}, nil, err
|
||||
}
|
||||
|
||||
// TODO(rjl493456442) better to define the comparator of chain config
|
||||
// and short circuit if the chain config is not changed.
|
||||
compatErr := storedCfg.CheckCompatible(newCfg, head.Number.Uint64(), head.Time)
|
||||
|
|
|
|||
Loading…
Reference in a new issue