We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a3a37e commit 5704f74Copy full SHA for 5704f74
crates/types/src/slot.rs
@@ -34,7 +34,7 @@ impl SlotCalculator {
34
}
35
36
/// Calculates the slot for a given timestamp.
37
- /// This only works for timestamps that are greater than the start timestamp.
+ /// This only works for timestamps that are GEQ to the chain's start_timestamp.
38
pub const fn calculate_slot(&self, timestamp: u64) -> u64 {
39
let elapsed = timestamp - self.start_timestamp;
40
let slots = elapsed.div_ceil(self.slot_duration);
0 commit comments