From 2701162da9743d3ae76948841dbe4dab54d19329 Mon Sep 17 00:00:00 2001 From: jimmyshi <417711026@qq.com> Date: Tue, 6 Jan 2026 15:08:40 +0800 Subject: [PATCH] Remove duplicate code Remove CheckConfigForkOrder call because CheckConfigForkOrder has already been called in overrides.apply() a few lines above --- core/genesis.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index 7d640c8cae..9fb9cb9d2d 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -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)