mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +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.MockExecFunc(stages.Execution, execUntilFunc(execToBlock))
|
||||||
_ = stateStages.SetCurrentStage(stages.Execution)
|
_ = stateStages.SetCurrentStage(stages.Execution)
|
||||||
|
if historyV2 {
|
||||||
stagedsync.ResetHashState(tx)
|
stagedsync.ResetHashState(tx)
|
||||||
stagedsync.ResetIH(tx)
|
stagedsync.ResetIH(tx)
|
||||||
|
}
|
||||||
if err := stateStages.Run(db, tx, false); err != nil {
|
if err := stateStages.Run(db, tx, false); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user