Skip to content

Commit

Permalink
use default
Browse files Browse the repository at this point in the history
  • Loading branch information
luffykai committed Jan 21, 2025
1 parent 9334ea0 commit d0c11af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions benchmarks/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ use openvm_sdk::{
DEFAULT_INTERNAL_LOG_BLOWUP, DEFAULT_LEAF_LOG_BLOWUP, DEFAULT_ROOT_LOG_BLOWUP,
},
keygen::{leaf_keygen, AppProvingKey},
prover::{vm::local::VmLocalProver, AppProver, LeafProvingController},
prover::{
vm::local::VmLocalProver, AppProver, LeafProvingController, DEFAULT_NUM_CHILDREN_LEAF,
},
StdIn,
};
use openvm_stark_backend::utils::metrics_span;
Expand Down Expand Up @@ -238,7 +240,9 @@ where
leaf_vm_pk,
app_pk.leaf_committed_exe,
);
let leaf_controller = LeafProvingController { num_children: 1 };
let leaf_controller = LeafProvingController {
num_children: DEFAULT_NUM_CHILDREN_LEAF,
};
leaf_controller.generate_proof(&leaf_prover, &app_proof);
}
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk/src/prover/agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::{
NonRootCommittedExe, RootSC, F, SC,
};

const DEFAULT_NUM_CHILDREN_LEAF: usize = 1;
pub const DEFAULT_NUM_CHILDREN_LEAF: usize = 1;
const DEFAULT_NUM_CHILDREN_INTERNAL: usize = 2;
const DEFAULT_MAX_INTERNAL_WRAPPER_LAYERS: usize = 4;

Expand Down

0 comments on commit d0c11af

Please sign in to comment.