Skip to content

Commit

Permalink
keep leaves as iterator in multipath verify
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin <marcin.gorny.94@protonmail.com>
  • Loading branch information
intx4 and mmagician authored Jan 18, 2024
1 parent d849e80 commit 42a2f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/merkle_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl<P: Config> MultiPath<P> {
) -> Result<bool, crate::Error> {
// array of auth paths as arrays of InnerDigests

let leaves: Vec<L> = leaves.into_iter().collect();
let mut leaves = leaves.into_iter();

let auth_paths: Vec<Vec<P::InnerDigest>> = self.decompress()?.collect();

Expand Down

0 comments on commit 42a2f45

Please sign in to comment.