Skip to content

Commit 02846b0

Browse files
committed
Add max commitments per proof
1 parent f41ebad commit 02846b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/citrea_config/batch_prover.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ pub struct BatchProverConfig {
2323
pub proof_sampling_number: usize,
2424
/// If true prover will try to recover ongoing proving sessions
2525
pub enable_recovery: bool,
26+
/// Maximum number of commitments to include in a single proof
27+
pub max_commitments_per_proof: Option<usize>,
2628
}
2729

2830
impl Default for BatchProverConfig {
@@ -31,6 +33,7 @@ impl Default for BatchProverConfig {
3133
proving_mode: ProverGuestRunConfig::Execute,
3234
proof_sampling_number: 0,
3335
enable_recovery: true,
36+
max_commitments_per_proof: None,
3437
}
3538
}
3639
}
@@ -72,6 +75,7 @@ mod tests {
7275
proving_mode = "skip"
7376
proof_sampling_number = 500
7477
enable_recovery = true
78+
max_commitments_per_proof = 100
7579
"#;
7680

7781
let config_file = create_config_from(config);
@@ -81,6 +85,7 @@ mod tests {
8185
proving_mode: ProverGuestRunConfig::Skip,
8286
proof_sampling_number: 500,
8387
enable_recovery: true,
88+
max_commitments_per_proof: Some(100),
8489
};
8590
assert_eq!(config, expected);
8691
}

0 commit comments

Comments
 (0)