Skip to content

Commit

Permalink
Fix state rollback issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenKor committed Dec 7, 2022
1 parent 0828010 commit b23ca19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libzkbob-rs/src/client/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ where

let rollback_index = rollback_index & ((1 << constants::OUTPLUSONELOG) - 1);
self.txs.remove_from(rollback_index);
self.latest_note_index = 0;
for (index, tx) in self.txs.iter() {
match tx {
Transaction::Account(acc) => {
Expand Down

0 comments on commit b23ca19

Please sign in to comment.