les: fix block announcements (#19322)

pull/19327/head
Felföldi Zsolt 6 years ago committed by Péter Szilágyi
parent 2f5b6cb442
commit e852505ace
  1. 3
      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) })
}
}

Loading…
Cancel
Save