Log disconnect reason when light server is not synced

This commit is contained in:
Adam Schmideg 2020-02-10 14:39:36 +01:00
parent 34bb132b10
commit e4dff757c4

View file

@ -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("Not synced Light Ethereum rejecting", p)
return p2p.DiscRequested
}
defer p.fcClient.Disconnect()