don't reset trie at historyV1 #5127

This commit is contained in:
Alex Sharov 2022-08-21 11:39:15 +07:00 committed by GitHub
parent 1303023cb8
commit 78e9703bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}