mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
beacon/light/sync: add panic message
This commit is contained in:
parent
1f464ec471
commit
7f75da46ba
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue