mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-20 01:50:40 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue