From 78e9703bd794509946c86648e708daf762cd663f Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Sun, 21 Aug 2022 11:39:15 +0700 Subject: [PATCH] don't reset trie at historyV1 #5127 --- cmd/integration/commands/state_stages.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/integration/commands/state_stages.go b/cmd/integration/commands/state_stages.go index be89a2a4c..a7156b883 100644 --- a/cmd/integration/commands/state_stages.go +++ b/cmd/integration/commands/state_stages.go @@ -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 }