mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-16 00:37:09 +00:00
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.
|
// Reject light clients if server is not synced.
|
||||||
if !h.synced() {
|
if !h.synced() {
|
||||||
|
p.Log().Debug("Light server not synced, rejecting peer")
|
||||||
return p2p.DiscRequested
|
return p2p.DiscRequested
|
||||||
}
|
}
|
||||||
defer p.fcClient.Disconnect()
|
defer p.fcClient.Disconnect()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user