Skip to content

Commit

Permalink
fix panic msg
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Nov 13, 2024
1 parent 821c9b4 commit f9bbccb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sync/sync_head.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ func (s *Syncer[H]) verifySkipping(ctx context.Context, subjHead, networkHeader

diff := networkHeader.Height() - subjHeight
if diff <= 0 {
panic(fmt.Sprintf("implementation bug: diff %d, subjective height %d (%X), network height %d (%X)",
diff,
panic(fmt.Sprintf("implementation bug:\n subjective head height %d, hash %X,\n network head height %d, hash %X",
subjHeight, subjHead.Hash(),
networkHeader.Height(), networkHeader.Hash(),
))
Expand Down

0 comments on commit f9bbccb

Please sign in to comment.