From e852505acedf6d3728330852b2d816ebf12a2cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felf=C3=B6ldi=20Zsolt?= Date: Mon, 25 Mar 2019 08:17:55 +0100 Subject: [PATCH] les: fix block announcements (#19322) --- les/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/les/server.go b/les/server.go index 270640f02..3716685e1 100644 --- a/les/server.go +++ b/les/server.go @@ -280,8 +280,8 @@ func (pm *ProtocolManager) blockLoop() { ) for _, p := range peers { + p := p switch p.announceType { - case announceTypeSimple: p.queueSend(func() { p.SendAnnounce(announce) }) case announceTypeSigned: @@ -290,7 +290,6 @@ func (pm *ProtocolManager) blockLoop() { signedAnnounce.sign(pm.server.privateKey) signed = true } - p.queueSend(func() { p.SendAnnounce(signedAnnounce) }) } }