mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Log disconnect reason when light server is not synced
This commit is contained in:
parent
34bb132b10
commit
e4dff757c4
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.
|
// Reject light clients if server is not synced.
|
||||||
if !h.synced() {
|
if !h.synced() {
|
||||||
|
p.Log().Debug("Not synced Light Ethereum rejecting", p)
|
||||||
return p2p.DiscRequested
|
return p2p.DiscRequested
|
||||||
}
|
}
|
||||||
defer p.fcClient.Disconnect()
|
defer p.fcClient.Disconnect()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue