Commit e852505a authored by Felföldi Zsolt's avatar Felföldi Zsolt Committed by Péter Szilágyi

les: fix block announcements (#19322)

parent 2f5b6cb4
...@@ -280,8 +280,8 @@ func (pm *ProtocolManager) blockLoop() { ...@@ -280,8 +280,8 @@ func (pm *ProtocolManager) blockLoop() {
) )
for _, p := range peers { for _, p := range peers {
p := p
switch p.announceType { switch p.announceType {
case announceTypeSimple: case announceTypeSimple:
p.queueSend(func() { p.SendAnnounce(announce) }) p.queueSend(func() { p.SendAnnounce(announce) })
case announceTypeSigned: case announceTypeSigned:
...@@ -290,7 +290,6 @@ func (pm *ProtocolManager) blockLoop() { ...@@ -290,7 +290,6 @@ func (pm *ProtocolManager) blockLoop() {
signedAnnounce.sign(pm.server.privateKey) signedAnnounce.sign(pm.server.privateKey)
signed = true signed = true
} }
p.queueSend(func() { p.SendAnnounce(signedAnnounce) }) p.queueSend(func() { p.SendAnnounce(signedAnnounce) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment