Skip to content

Commit

Permalink
add support for use_latest_elf (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: eyusufatik <[email protected]>
  • Loading branch information
yaziciahmet and eyusufatik authored Jan 3, 2025
1 parent 6a87ce3 commit f75fe92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/citrea_config/batch_prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ pub struct BatchProverConfig {
pub proof_sampling_number: usize,
/// If true prover will try to recover ongoing proving sessions
pub enable_recovery: bool,
/// Wether to always use the latest ELF or not
pub use_latest_elf: bool,
}

impl Default for BatchProverConfig {
Expand All @@ -47,6 +49,7 @@ impl Default for BatchProverConfig {
proving_mode: ProverGuestRunConfig::Execute,
proof_sampling_number: 0,
enable_recovery: true,
use_latest_elf: true,
}
}
}
Expand Down Expand Up @@ -97,6 +100,7 @@ mod tests {
proving_mode: ProverGuestRunConfig::Skip,
proof_sampling_number: 500,
enable_recovery: true,
use_latest_elf: true,
};
assert_eq!(config, expected);
}
Expand Down

0 comments on commit f75fe92

Please sign in to comment.