Try PoW seeds up to p (#186)

No point in going higher.
This commit is contained in:
Daniel Lubarov 2021-08-18 00:53:20 -07:00 committed by GitHub
parent aae2c9d16f
commit f2ed563da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ fn fri_committed_trees<F: Field + Extendable<D>, const D: usize>(
}
fn fri_proof_of_work<F: Field>(current_hash: HashOut<F>, config: &FriConfig) -> F {
(0..u64::MAX)
(0..=F::NEG_ONE.to_canonical_u64())
.into_par_iter()
.find_any(|&i| {
hash_n_to_1(