Skip to content

Commit 38495f2

Browse files
authored
adds pecorino slot timings to slot calculator (#10)
adds a convenience method for getting a Pecorino slot timing calculator.
1 parent ce03482 commit 38495f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/utils/calc.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ impl SlotCalculator {
6363
}
6464
}
6565

66+
/// Creates a new slot calculator for Pecorino host network.
67+
pub const fn pecorino_host() -> Self {
68+
Self {
69+
start_timestamp: 1740681556,
70+
slot_offset: 0,
71+
slot_duration: 12,
72+
}
73+
}
74+
6675
/// Creates a new slot calculator for Ethereum mainnet.
6776
pub const fn mainnet() -> Self {
6877
Self {

0 commit comments

Comments
 (0)