extra reset before starting change in rewind side fork (#4774)

* extra reset before starting change

* extra reset before starting change

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
This commit is contained in:
Giulio rebuffo 2022-07-21 04:06:26 +02:00 committed by GitHub
parent 7573a41069
commit 1becfc509b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,7 @@ func (fv *ForkValidator) rewindAccumulator(to uint64, accumulator *shards.Accumu
return err return err
} }
// Start the changes // Start the changes
accumulator.Reset(0)
accumulator.StartChange(to, hash, txs, true) accumulator.StartChange(to, hash, txs, true)
accChangesCursor, err := fv.extendingFork.CursorDupSort(kv.AccountChangeSet) accChangesCursor, err := fv.extendingFork.CursorDupSort(kv.AccountChangeSet)
if err != nil { if err != nil {