Skip to content

Commit f75fe92

Browse files
add support for use_latest_elf (#68)
Co-authored-by: eyusufatik <[email protected]>
1 parent 6a87ce3 commit f75fe92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/citrea_config/batch_prover.rs

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ pub struct BatchProverConfig {
3939
pub proof_sampling_number: usize,
4040
/// If true prover will try to recover ongoing proving sessions
4141
pub enable_recovery: bool,
42+
/// Wether to always use the latest ELF or not
43+
pub use_latest_elf: bool,
4244
}
4345

4446
impl Default for BatchProverConfig {
@@ -47,6 +49,7 @@ impl Default for BatchProverConfig {
4749
proving_mode: ProverGuestRunConfig::Execute,
4850
proof_sampling_number: 0,
4951
enable_recovery: true,
52+
use_latest_elf: true,
5053
}
5154
}
5255
}
@@ -97,6 +100,7 @@ mod tests {
97100
proving_mode: ProverGuestRunConfig::Skip,
98101
proof_sampling_number: 500,
99102
enable_recovery: true,
103+
use_latest_elf: true,
100104
};
101105
assert_eq!(config, expected);
102106
}

0 commit comments

Comments
 (0)