@@ -23,6 +23,8 @@ pub struct BatchProverConfig {
23
23
pub proof_sampling_number : usize ,
24
24
/// If true prover will try to recover ongoing proving sessions
25
25
pub enable_recovery : bool ,
26
+ /// Maximum number of commitments to include in a single proof
27
+ pub max_commitments_per_proof : Option < usize > ,
26
28
}
27
29
28
30
impl Default for BatchProverConfig {
@@ -31,6 +33,7 @@ impl Default for BatchProverConfig {
31
33
proving_mode : ProverGuestRunConfig :: Execute ,
32
34
proof_sampling_number : 0 ,
33
35
enable_recovery : true ,
36
+ max_commitments_per_proof : None ,
34
37
}
35
38
}
36
39
}
@@ -72,6 +75,7 @@ mod tests {
72
75
proving_mode = "skip"
73
76
proof_sampling_number = 500
74
77
enable_recovery = true
78
+ max_commitments_per_proof = 100
75
79
"# ;
76
80
77
81
let config_file = create_config_from ( config) ;
@@ -81,6 +85,7 @@ mod tests {
81
85
proving_mode : ProverGuestRunConfig :: Skip ,
82
86
proof_sampling_number : 500 ,
83
87
enable_recovery : true ,
88
+ max_commitments_per_proof : Some ( 100 ) ,
84
89
} ;
85
90
assert_eq ! ( config, expected) ;
86
91
}
0 commit comments