les: log disconnect reason when light server is not synced (#20643)

Co-authored-by: ligi <ligi@ligi.de>
pull/20648/head
Adam Schmideg 5 years ago committed by GitHub
parent c22fdec3c7
commit 8045504abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      les/server_handler.go

@ -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()

Loading…
Cancel
Save