Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
peekpi committed Aug 29, 2019
1 parent 974175f commit e742eee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blockchain/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ func (bs *BlockchainStation) handleMsg(e *router.Event) error {
query.Origin.Number += query.Skip + 1
}
}

if len(headers) == 0 {
panic(query)
}
router.ReplyEvent(e, router.P2PBlockHeadersMsg, headers)
return nil
case router.P2PGetBlockBodiesMsg:
Expand Down

0 comments on commit e742eee

Please sign in to comment.