From 82c1cdbc778fe7de72b0e3d00d2b182656c62171 Mon Sep 17 00:00:00 2001 From: eyusufatik Date: Thu, 26 Dec 2024 22:09:59 +0300 Subject: [PATCH] add support for use_latest_elf --- src/citrea_config/batch_prover.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/citrea_config/batch_prover.rs b/src/citrea_config/batch_prover.rs index c72a86c..d198a50 100644 --- a/src/citrea_config/batch_prover.rs +++ b/src/citrea_config/batch_prover.rs @@ -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 { @@ -47,6 +49,7 @@ impl Default for BatchProverConfig { proving_mode: ProverGuestRunConfig::Execute, proof_sampling_number: 0, enable_recovery: true, + use_latest_elf: true, } } } @@ -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); }