beacon/light/sync: add panic message

This commit is contained in:
Zsolt Felfoldi 2024-04-17 10:17:25 +02:00
parent 1f464ec471
commit 7f75da46ba

View file

@ -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: