From 7f75da46ba552a4cdcaff818fccaf3f6fe694afc Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Wed, 17 Apr 2024 10:17:25 +0200 Subject: [PATCH] beacon/light/sync: add panic message --- beacon/light/sync/update_sync.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon/light/sync/update_sync.go b/beacon/light/sync/update_sync.go index c986d3cf3cda..d4c99db903f0 100644 --- a/beacon/light/sync/update_sync.go +++ b/beacon/light/sync/update_sync.go @@ -167,7 +167,8 @@ func (s *CheckpointInit) Process(requester request.Requester, events []request.E case !state.canonical: log.Error("Checkpoint not available, block is reported as non-canonical", "server", server.Name()) case !s.hasEpochInfo: - panic(nil) // should be available if hasHeader is true and state is ssPrintStatus + // should be available if hasHeader is true and state is ssPrintStatus + panic("Checkpoint epoch info not available when printing retrieval status") case !s.epochBoundary: log.Error("Checkpoint not available, block is not on epoch boundary", "slot", s.cpSlot, "parent slot", s.parentSlot, "server", server.Name()) case !state.finalized: