Skip to content

Commit

Permalink
feat: configure POREP_MINIMUM_CHALLENGES
Browse files Browse the repository at this point in the history
  • Loading branch information
HammerBu committed Nov 11, 2022
1 parent 4da01d1 commit e737c60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fil-proofs-tooling/src/bin/benchy/prodbench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ use filecoin_hashers::sha256::Sha256Hasher;
use filecoin_proofs::{
clear_cache, parameters::public_params, seal_commit_phase1, seal_commit_phase2,
validate_cache_for_commit, DefaultOctLCTree, DefaultOctTree, PaddedBytesAmount, PoRepConfig,
PoRepProofPartitions, SectorSize, DRG_DEGREE, EXP_DEGREE, LAYERS, POREP_PARTITIONS,
PoRepProofPartitions, SectorSize, DRG_DEGREE, EXP_DEGREE, LAYERS, POREP_MINIMUM_CHALLENGES,
POREP_PARTITIONS,
};
use log::info;
use rand::SeedableRng;
Expand Down Expand Up @@ -166,10 +167,9 @@ fn configure_global_config(inputs: &ProdbenchInputs) {
.write()
.expect("POREP_PARTITIONS poisoned")
.insert(inputs.sector_size_bytes(), inputs.porep_partitions);
// POREP_MINIMUM_CHALLENGES
// .write()
// .expect("POREP_MINIMUM_CHALLENGES poisoned")
// .insert(inputs.sector_size_bytes(), inputs.porep_challenges);
POREP_MINIMUM_CHALLENGES
.get_mut()
.insert(inputs.sector_size_bytes(), inputs.porep_challenges as usize);
}

pub fn run(
Expand Down

0 comments on commit e737c60

Please sign in to comment.