Remove duplicate code

Remove CheckConfigForkOrder call because CheckConfigForkOrder has already been called in overrides.apply() a few lines above
This commit is contained in:
jimmyshi 2026-01-06 15:08:40 +08:00 committed by GitHub
parent a8a4804895
commit 2701162da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)