Skip to content

Commit

Permalink
disable mock prove when debug_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Aug 17, 2023
1 parent 11a09d4 commit 4466059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snark-verifier-sdk/src/evm_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ where
MSMAccumulator = DualMSM<'params, Bn256>,
>,
{
/*
#[cfg(debug_assertions)]
{
use halo2_base::halo2_proofs::{dev::MockProver, poly::commitment::Params};
MockProver::run(params.k(), &circuit, instances.clone()).unwrap().assert_satisfied_par();
}
*/

let instances = instances.iter().map(|instances| instances.as_slice()).collect_vec();

Expand Down
2 changes: 2 additions & 0 deletions snark-verifier-sdk/src/halo2_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,15 @@ where
MSMAccumulator = DualMSM<'params, Bn256>,
>,
{
/*
#[cfg(debug_assertions)]
{
use halo2_proofs::poly::commitment::Params;
halo2_proofs::dev::MockProver::run(params.k(), &circuit, instances.clone())
.unwrap()
.assert_satisfied_par();
}
*/

if let Some((instance_path, proof_path)) = path {
let cached_instances = read_instances(instance_path);
Expand Down

0 comments on commit 4466059

Please sign in to comment.