mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
don't reset trie at historyV1 #5127
This commit is contained in:
parent
1303023cb8
commit
78e9703bd7
@ -274,8 +274,10 @@ func syncBySmallSteps(db kv.RwDB, miningConfig params.MiningConfig, ctx context.
|
||||
|
||||
stateStages.MockExecFunc(stages.Execution, execUntilFunc(execToBlock))
|
||||
_ = stateStages.SetCurrentStage(stages.Execution)
|
||||
stagedsync.ResetHashState(tx)
|
||||
stagedsync.ResetIH(tx)
|
||||
if historyV2 {
|
||||
stagedsync.ResetHashState(tx)
|
||||
stagedsync.ResetIH(tx)
|
||||
}
|
||||
if err := stateStages.Run(db, tx, false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user