Skip to content

Commit

Permalink
Merge pull request #428 from spacemeshos/fix-profiler-err
Browse files Browse the repository at this point in the history
fix: add mock prover par expectation
  • Loading branch information
poszu authored Nov 26, 2024
2 parents eff8bf3 + 5229535 commit 7d55f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions benches/proving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ fn prover_bench(c: &mut Criterion) {
.expect_prove()
.times(nonces as usize / 16)
.returning(|_, _, _, _| Ok(0));
pow_prover.expect_par().returning(|| false);
let prover =
Prover8_56::new(CHALLENGE, 0..nonces, params, &pow_prover, &[7; 32]).unwrap();
b.iter(|| {
Expand Down
1 change: 1 addition & 0 deletions profiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ fn proving(args: ProvingArgs) -> eyre::Result<()> {

let mut pow_prover = pow::MockProver::new();
pow_prover.expect_prove().returning(|_, _, _, _| Ok(0));
pow_prover.expect_par().returning(|| false);
let prover = Prover8_56::new(challenge, 0..args.nonces, params, &pow_prover, &[7; 32])?;

let mut total_time = time::Duration::from_secs(0);
Expand Down

0 comments on commit 7d55f46

Please sign in to comment.