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

Co-authored-by: ligi <ligi@ligi.de>
This commit is contained in:
Adam Schmideg 2020-02-11 16:46:32 +01:00 committed by GitHub
parent c22fdec3c7
commit 8045504abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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