From f2ed563da9144b7dd6e58afb5524194a5fb19d43 Mon Sep 17 00:00:00 2001 From: Daniel Lubarov Date: Wed, 18 Aug 2021 00:53:20 -0700 Subject: [PATCH] Try PoW seeds up to p (#186) No point in going higher. --- src/fri/prover.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fri/prover.rs b/src/fri/prover.rs index abddfcd7..f1068027 100644 --- a/src/fri/prover.rs +++ b/src/fri/prover.rs @@ -111,7 +111,7 @@ fn fri_committed_trees, const D: usize>( } fn fri_proof_of_work(current_hash: HashOut, config: &FriConfig) -> F { - (0..u64::MAX) + (0..=F::NEG_ONE.to_canonical_u64()) .into_par_iter() .find_any(|&i| { hash_n_to_1(