Skip to content

Commit 60877d3

Browse files
authored
fix: reduce segment len in prover config (#1631)
1 parent 07d1621 commit 60877d3

File tree

3 files changed

+27
-18
lines changed

3 files changed

+27
-18
lines changed

zkvm-prover/Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zkvm-prover/src/prover.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ impl LocalProver {
190190
// if we got assigned a task for an unknown hard fork, there is something wrong in the
191191
// coordinator
192192
let config = self.config.circuits.get(hard_fork_name).unwrap();
193-
println!("config workspace path for hard-fork {:?} = {:?}", hard_fork_name, config.workspace_path);
193+
println!(
194+
"config workspace path for hard-fork {:?} = {:?}",
195+
hard_fork_name, config.workspace_path
196+
);
194197

195198
match hard_fork_name {
196199
"euclid" => Arc::new(Arc::new(Mutex::new(EuclidHandler::new(

zkvm-prover/src/zk_circuits_handler/euclidV2.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use async_trait::async_trait;
66
use scroll_proving_sdk::prover::{proving_service::ProveRequest, ProofType};
77
use scroll_zkvm_prover_euclidv2::{
88
task::{batch::BatchProvingTask, bundle::BundleProvingTask, chunk::ChunkProvingTask},
9-
BatchProver, BundleProver, ChunkProver,
9+
BatchProver, BundleProver, ChunkProver, ProverConfig,
1010
};
1111
use tokio::sync::Mutex;
1212
pub struct EuclidV2Handler {
@@ -29,7 +29,9 @@ impl EuclidV2Handler {
2929
chunk_exe,
3030
chunk_app_config,
3131
Some(cache_dir.clone()),
32-
Default::default(),
32+
ProverConfig {
33+
segment_len: Some((1 << 22) - 100),
34+
},
3335
)
3436
.expect("Failed to setup chunk prover");
3537
println!("ok 2");
@@ -40,7 +42,9 @@ impl EuclidV2Handler {
4042
batch_exe,
4143
batch_app_config,
4244
Some(cache_dir.clone()),
43-
Default::default(),
45+
ProverConfig {
46+
segment_len: Some((1 << 22) - 100),
47+
},
4448
)
4549
.expect("Failed to setup batch prover");
4650
println!("ok 3");
@@ -51,7 +55,9 @@ impl EuclidV2Handler {
5155
bundle_exe,
5256
bundle_app_config,
5357
Some(cache_dir),
54-
Default::default(),
58+
ProverConfig {
59+
segment_len: Some((1 << 22) - 100),
60+
},
5561
)
5662
.expect("Failed to setup bundle prover");
5763
println!("ok 4");

0 commit comments

Comments
 (0)