good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 8045504a authored by Adam Schmideg's avatar Adam Schmideg Committed by GitHub
Browse files

les: log disconnect reason when light server is not synced (#20643)


Co-authored-by: default avatarligi <ligi@ligi.de>
parent c22fdec3
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,7 @@ func (h *serverHandler) handle(p *peer) error { ...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment