You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We will not fix this issue, as reverting requires rolling back to the previous root hash. However, while reverting the op_log, if the store adds a new key or deletes an old key - it arbitrarily reorganizes the tree.
Since it is a bug in the RevertibleStore, we will deprecate it in favor of InMemoryStore (which currently supports correct rollback) in #182.
When
.reset()
method is called on the revertible store, it calls the.set()
or.delete()
method for each logged operation.basecoin-rs/crates/store/src/impls/revertible.rs
Lines 94 to 101 in aa59797
But the
.set()
may add a new operation to theop_log
, andop_log
may never be empty.basecoin-rs/crates/store/src/impls/revertible.rs
Lines 52 to 62 in aa59797
A sample test case demonstrating this.
The text was updated successfully, but these errors were encountered: