From 0dc8e271a9c2e60d919d23bb3656559ae65bfe01 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 31 May 2023 16:06:09 +0700 Subject: [PATCH] fix reset tx sequence value (#7606) --- eth/stagedsync/stage_snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/stagedsync/stage_snapshots.go b/eth/stagedsync/stage_snapshots.go index 082b92efe..e018c564f 100644 --- a/eth/stagedsync/stage_snapshots.go +++ b/eth/stagedsync/stage_snapshots.go @@ -260,7 +260,7 @@ func FillDBFromSnapshots(logPrefix string, ctx context.Context, tx kv.RwTx, return err } // ResetSequence - allow set arbitrary value to sequence (for example to decrement it to exact value) - if err := rawdb.ResetSequence(tx, kv.EthTx, lastTxnID); err != nil { + if err := rawdb.ResetSequence(tx, kv.EthTx, lastTxnID+1); err != nil { return err } if err != nil {