From 88e8828bbdfc79f3b52b78a3c1d0d2316cf15d8f Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Sun, 25 Apr 2021 07:14:10 +0100 Subject: [PATCH] Not rewind chain on hard forks (#1798) Co-authored-by: Alex Sharp --- eth/backend.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index c585c4113..926b42f4d 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -317,16 +317,6 @@ func New(stack *node.Node, config *ethconfig.Config, gitCommit string) (*Ethereu vmConfig, _ := BlockchainRuntimeConfig(config) txCacher := core.NewTxSenderCacher(runtime.NumCPU()) - // Rewind the chain in case of an incompatible config upgrade. - if compat, ok := genesisErr.(*params.ConfigCompatError); ok { - log.Warn("Rewinding chain to upgrade configuration", "err", compat) - core.SetHead(chainDb, compat.RewindTo) - err = rawdb.WriteChainConfig(chainDb, genesisHash, chainConfig) - if err != nil { - return nil, err - } - } - if config.TxPool.Journal != "" { config.TxPool.Journal, err = stack.ResolvePath(config.TxPool.Journal) if err != nil {