Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 9, 2024
1 parent 5be9a71 commit 6e64e39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions basecoin/store/src/impls/revertible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ where
Ok(())
}

/// Revert all operations in the operation log.
///
/// This method doesn't guarantee the Merkle tree with the exactly previous root hash.
/// It should be avoided. Use `InMemoryStore` directly which implements rollback directly.
///
/// GH issue: informalsystems/basecoin-rs#129
#[inline]
fn reset(&mut self) {
// note that we do NOT call the backing store's reset here - this allows users to create
Expand Down

0 comments on commit 6e64e39

Please sign in to comment.