forked from cerc-io/plugeth
les: log disconnect reason when light server is not synced (#20643)
Co-authored-by: ligi <ligi@ligi.de>
This commit is contained in:
parent
c22fdec3c7
commit
8045504abf
@ -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…
Reference in New Issue
Block a user