Skip to content

Commit c7de4ff

Browse files
nits
1 parent 9f5db64 commit c7de4ff

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • storage/src/qmdb/current/ordered

storage/src/qmdb/current/ordered/db.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,13 @@ impl<F: merkle::Graftable, K: Key, D: Digest, const N: usize> KeyValueProof<F, K
9595
where
9696
H: Hasher<Digest = D>,
9797
V: ValueEncoding,
98-
Operation<F, K, V>: Codec + Clone,
98+
Operation<F, K, V>: Codec,
9999
{
100100
let Operation::Update(update) = operation else {
101101
return false;
102102
};
103-
if self.next_key != update.next_key {
104-
return false;
105-
}
106103

107-
self.proof.verify(hasher, operation.clone(), root)
104+
self.verify_update(hasher, update, root)
108105
}
109106
}
110107

0 commit comments

Comments
 (0)