Skip to content

Commit

Permalink
extra reset before starting change in rewind side fork (#4774)
Browse files Browse the repository at this point in the history
* extra reset before starting change

* extra reset before starting change

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
  • Loading branch information
Giulio2002 and giuliorebuffo committed Jul 21, 2022
1 parent 7573a41 commit 1becfc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions turbo/engineapi/fork_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (fv *ForkValidator) rewindAccumulator(to uint64, accumulator *shards.Accumu
return err
}
// Start the changes
accumulator.Reset(0)
accumulator.StartChange(to, hash, txs, true)
accChangesCursor, err := fv.extendingFork.CursorDupSort(kv.AccountChangeSet)
if err != nil {
Expand Down

0 comments on commit 1becfc5

Please sign in to comment.