WIP: hash inequality seems to be happening from something on the wire

This commit is contained in:
Dave Hrycyszyn
2024-06-18 10:17:59 +01:00
parent e9870241cb
commit 416d1ad88b
8 changed files with 92 additions and 21 deletions

View File

@@ -212,7 +212,7 @@ impl<T: CrdtNode + DebugView> BaseCrdt<T> {
/// Apply a signed operation to this BaseCRDT, verifying integrity and routing to the right
/// nested CRDT
pub fn apply(&mut self, op: SignedOp) -> OpState {
self.log_try_apply(&op);
// self.log_try_apply(&op);
#[cfg(feature = "bft")]
if !op.is_valid_digest() {
@@ -232,9 +232,9 @@ impl<T: CrdtNode + DebugView> BaseCrdt<T> {
}
// apply
self.log_actually_apply(&op);
// self.log_actually_apply(&op);
let status = self.doc.apply(op.inner);
self.debug_view();
// self.debug_view();
self.received.insert(op_id);
// apply all of its causal dependents if there are any