Skip to content

Commit

Permalink
sct: set default epoch_duration to 17280
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Jun 17, 2024
1 parent 9d4d753 commit 5a13698
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/core/component/sct/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ impl From<SctParameters> for pb::SctParameters {
}
}

// TODO(erwan): defaults are implemented here as well as in the `pd::main`
impl Default for SctParameters {
fn default() -> Self {
Self {
epoch_duration: 719,
// Measured in blocks, assuming a 5s block time
// this is about a day worth of blocks.
epoch_duration: 17280,
}
}
}

0 comments on commit 5a13698

Please sign in to comment.