Skip to content

Commit

Permalink
Set default initial da height (#64)
Browse files Browse the repository at this point in the history
* Set default initial da height

* Add field to test
  • Loading branch information
rakanalh authored Dec 16, 2024
1 parent 936456a commit 51a4d19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/citrea_config/light_client_prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pub struct LightClientProverConfig {
pub proof_sampling_number: usize,
/// If true prover will try to recover ongoing proving sessions
pub enable_recovery: bool,
/// The starting DA block to sync from
pub initial_da_height: u64,
}

impl Default for LightClientProverConfig {
Expand All @@ -19,6 +21,7 @@ impl Default for LightClientProverConfig {
proving_mode: ProverGuestRunConfig::Execute,
proof_sampling_number: 0,
enable_recovery: true,
initial_da_height: 1,
}
}
}
Expand Down Expand Up @@ -60,6 +63,7 @@ mod tests {
proving_mode = "skip"
proof_sampling_number = 500
enable_recovery = true
initial_da_height = 15
"#;

let config_file = create_config_from(config);
Expand All @@ -69,6 +73,7 @@ mod tests {
proving_mode: ProverGuestRunConfig::Skip,
proof_sampling_number: 500,
enable_recovery: true,
initial_da_height: 15,
};
assert_eq!(config, expected);
}
Expand Down

0 comments on commit 51a4d19

Please sign in to comment.