Skip to content

Commit

Permalink
debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
simbahebinbo committed Jul 11, 2023
1 parent d4365df commit 6643a98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/merkle_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ impl MerkleProof {
root: &H256,
leaves: Vec<(H256, H256)>,
) -> Result<bool> {
println!("~~~~~~~~~~~~~~ MerkleProof leaves: {:?}", leaves);
let calculated_root = self.compute_root::<H>(leaves)?;
println!("~~~~~~~~~~~~~~ MerkleProof calculated_root: {:?}, root: {:?}", calculated_root, root);
Ok(&calculated_root == root)
}
}
Expand Down Expand Up @@ -539,9 +541,9 @@ impl CompiledMerkleProof {
root: &H256,
leaves: Vec<(H256, H256)>,
) -> Result<bool> {
println!("~~~~~~~~~~~~~~ leaves: {:?}", leaves);
println!("~~~~~~~~~~~~~~ CompiledMerkleProof leaves: {:?}", leaves);
let calculated_root = self.compute_root::<H>(leaves)?;
println!("~~~~~~~~~~~~~~ calculated_root: {:?}, root: {:?}", calculated_root, root);
println!("~~~~~~~~~~~~~~ CompiledMerkleProof calculated_root: {:?}, root: {:?}", calculated_root, root);
Ok(&calculated_root == root)
}
}
Expand Down

0 comments on commit 6643a98

Please sign in to comment.