Skip to content

Commit

Permalink
les: log disconnect reason when light server is not synced (#20643)
Browse files Browse the repository at this point in the history
Co-authored-by: ligi <ligi@ligi.de>
  • Loading branch information
adamschmideg and ligi authored Feb 11, 2020
1 parent c22fdec commit 8045504
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions les/server_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (h *serverHandler) handle(p *peer) error {
}
// Reject light clients if server is not synced.
if !h.synced() {
p.Log().Debug("Light server not synced, rejecting peer")
return p2p.DiscRequested
}
defer p.fcClient.Disconnect()
Expand Down

0 comments on commit 8045504

Please sign in to comment.