From c0e44697c32dba94d657112fdfd4532820f1e818 Mon Sep 17 00:00:00 2001 From: TAdev0 Date: Mon, 14 Oct 2024 22:30:24 +0200 Subject: [PATCH] remove is empty target check --- packages/utreexo/src/stump/accumulator.cairo | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/utreexo/src/stump/accumulator.cairo b/packages/utreexo/src/stump/accumulator.cairo index 993c7414..9213e82a 100644 --- a/packages/utreexo/src/stump/accumulator.cairo +++ b/packages/utreexo/src/stump/accumulator.cairo @@ -13,12 +13,7 @@ pub impl StumpUtreexoAccumulatorImpl of StumpUtreexoAccumulator { fn verify( self: @UtreexoStumpState, proof: @UtreexoBatchProof, del_hashes: Span ) -> Result<(), ByteArray> { - if (*proof.targets).is_empty() { - return Result::Ok(()); - }; - let computed_roots: Span = proof.compute_roots(del_hashes, *self.num_leaves)?; - let mut number_matched_roots: u32 = 0; for i in 0