Skip to content

Commit d5331db

Browse files
committed
refactor(blockchain): reference INTERVALS_PER_SLOT in the tick panic message
The message hardcoded the interval count, so changing the grid would leave a stale number in a panic string.
1 parent f022277 commit d5331db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/blockchain/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl SlotInterval {
106106
2 => Self::Aggregation,
107107
3 => Self::SafeTargetUpdate,
108108
4 => Self::EndOfSlot,
109-
_ => unreachable!("slots only have 5 intervals"),
109+
_ => unreachable!("slots only have {INTERVALS_PER_SLOT} intervals"),
110110
}
111111
}
112112

0 commit comments

Comments
 (0)