Skip to content

Commit 9bf362b

Browse files
committed
udpate according to reviews
Signed-off-by: noelwei <[email protected]>
1 parent bba86ca commit 9bf362b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

zkvm-prover/src/zk_circuits_handler/euclid.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ impl Phase {
3333
let dir_cache = Some(workspace_path.join("cache"));
3434
let path_app_exe = workspace_path.join("chunk/app.vmexe");
3535
let path_app_config = workspace_path.join("chunk/openvm.toml");
36-
let segment_len = match self {
37-
Phase::EuclidV1 => None,
38-
Phase::EuclidV2 => Some((1 << 22) - 100),
39-
};
36+
let segment_len = Some((1 << 22) - 100);
4037
ProverConfig {
4138
dir_cache,
4239
path_app_config,
@@ -50,10 +47,7 @@ impl Phase {
5047
let dir_cache = Some(workspace_path.join("cache"));
5148
let path_app_exe = workspace_path.join("batch/app.vmexe");
5249
let path_app_config = workspace_path.join("batch/openvm.toml");
53-
let segment_len = match self {
54-
Phase::EuclidV1 => None,
55-
Phase::EuclidV2 => Some((1 << 22) - 100),
56-
};
50+
let segment_len = Some((1 << 22) - 100);
5751
ProverConfig {
5852
dir_cache,
5953
path_app_config,
@@ -66,18 +60,20 @@ impl Phase {
6660
pub fn phase_spec_bundle(&self, workspace_path: &Path) -> ProverConfig {
6761
let dir_cache = Some(workspace_path.join("cache"));
6862
let path_app_config = workspace_path.join("bundle/openvm.toml");
63+
let segment_len = Some((1 << 22) - 100);
6964
match self {
7065
Phase::EuclidV1 => ProverConfig {
7166
dir_cache,
7267
path_app_config,
68+
segment_len,
7369
path_app_exe: workspace_path.join("bundle/app_euclidv1.vmexe"),
7470
..Default::default()
7571
},
7672
Phase::EuclidV2 => ProverConfig {
7773
dir_cache,
7874
path_app_config,
75+
segment_len,
7976
path_app_exe: workspace_path.join("bundle/app.vmexe"),
80-
segment_len: Some((1 << 22) - 100),
8177
..Default::default()
8278
},
8379
}

0 commit comments

Comments
 (0)