Skip to content

Commit

Permalink
Fix typo (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet authored Sep 30, 2024
1 parent 97b6e5d commit 68f32a2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/citrea/tests/e2e/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async fn test_all_flow() {
Some(ProverConfig {
proving_mode: sov_stf_runner::ProverGuestRunConfig::Execute,
proof_sampling_number: 0,
enable_reocvery: true,
enable_recovery: true,
}),
rollup_config,
None,
Expand Down
2 changes: 1 addition & 1 deletion bin/citrea/tests/e2e/proving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async fn full_node_verify_proof_and_store() {
Some(ProverConfig {
proving_mode: sov_stf_runner::ProverGuestRunConfig::Execute,
proof_sampling_number: 0,
enable_reocvery: true,
enable_recovery: true,
}),
rollup_config,
None,
Expand Down
2 changes: 1 addition & 1 deletion bin/citrea/tests/e2e/syncing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async fn test_prover_sync_with_commitments() -> Result<(), anyhow::Error> {
Some(ProverConfig {
proving_mode: sov_stf_runner::ProverGuestRunConfig::Execute,
proof_sampling_number: 0,
enable_reocvery: true,
enable_recovery: true,
}),
rollup_config,
None,
Expand Down
2 changes: 1 addition & 1 deletion crates/prover/src/da_block_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ where
}

pub async fn run(mut self, start_l1_height: u64) {
if self.prover_config.enable_reocvery {
if self.prover_config.enable_recovery {
if let Err(e) = self.check_and_recover_ongoing_proving_sessions().await {
error!("Failed to recover ongoing proving sessions: {:?}", e);
}
Expand Down
8 changes: 4 additions & 4 deletions crates/sovereign-sdk/full-node/sov-stf-runner/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ pub struct ProverConfig {
/// Average number of commitments to prove
pub proof_sampling_number: usize,
/// If true prover will try to recover ongoing proving sessions
pub enable_reocvery: bool,
pub enable_recovery: bool,
}

impl Default for ProverConfig {
fn default() -> Self {
Self {
proving_mode: ProverGuestRunConfig::Execute,
proof_sampling_number: 0,
enable_reocvery: true,
enable_recovery: true,
}
}
}
Expand Down Expand Up @@ -247,7 +247,7 @@ mod tests {
let config = r#"
proving_mode = "skip"
proof_sampling_number = 500
enable_reocvery = true
enable_recovery = true
"#;

let config_file = create_config_from(config);
Expand All @@ -256,7 +256,7 @@ mod tests {
let expected = ProverConfig {
proving_mode: ProverGuestRunConfig::Skip,
proof_sampling_number: 500,
enable_reocvery: true,
enable_recovery: true,
};
assert_eq!(config, expected);
}
Expand Down

0 comments on commit 68f32a2

Please sign in to comment.