summaryrefslogtreecommitdiffstats
path: root/benches/bigfile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benches/bigfile.rs')
-rw-r--r--benches/bigfile.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/benches/bigfile.rs b/benches/bigfile.rs
index b2b013d..3d2088d 100644
--- a/benches/bigfile.rs
+++ b/benches/bigfile.rs
@@ -48,13 +48,13 @@ fn cleanup_files(filenames: &Vec<String>) -> std::io::Result<()> {
fn test_merkle_tree<H: Hasher + Clone + 'static>(hasher: H, files: &Vec<Vec<u8>>) {
let tree = MerkleTree::new(hasher.clone(), files);
- let proofer = DefaultProofer::new(&hasher, tree.leaves().clone());
+ let proofer = DefaultProofer::new(hasher, tree.leaves().clone());
let root = tree.root();
let root_hash = root.hash();
for i in 0..files.len() {
let proof = proofer.generate(i).expect("proof generation failed");
- assert!(proofer.verify(&proof, &files[i], root_hash, &hasher));
+ assert!(proofer.verify(&proof, &files[i], root_hash));
}
}