mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
Not rewind chain on hard forks (#1798)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
This commit is contained in:
parent
d959986466
commit
88e8828bbd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user