fix reset tx sequence value (#7606)

This commit is contained in:
Alex Sharov 2023-05-31 16:06:09 +07:00 committed by GitHub
parent 299c81e522
commit 0dc8e271a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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