Skip to content

Commit

Permalink
beacon/light/sync: add panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
zsfelfoldi committed Apr 20, 2024
1 parent 1f464ec commit 7f75da4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon/light/sync/update_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7f75da4

Please sign in to comment.