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 authored and conorsch committed Jun 18, 2024
1 parent 03e00de commit 31e75b9
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 31e75b9

Please sign in to comment.