From d5331db000173742a1380ad1aec83edeacbd65ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Thu, 6 Aug 2026 13:19:59 -0300 Subject: [PATCH] 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. --- crates/blockchain/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/blockchain/src/lib.rs b/crates/blockchain/src/lib.rs index 7faa1163..31f40ce7 100644 --- a/crates/blockchain/src/lib.rs +++ b/crates/blockchain/src/lib.rs @@ -106,7 +106,7 @@ impl SlotInterval { 2 => Self::Aggregation, 3 => Self::SafeTargetUpdate, 4 => Self::EndOfSlot, - _ => unreachable!("slots only have 5 intervals"), + _ => unreachable!("slots only have {INTERVALS_PER_SLOT} intervals"), } }