Skip to content

Commit e852505

Browse files
zsfelfoldikaralabe
authored andcommitted
les: fix block announcements (#19322)
1 parent 2f5b6cb commit e852505

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎les/server.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ func (pm *ProtocolManager) blockLoop() {
280280
)
281281

282282
for _, p := range peers {
283+
p := p
283284
switch p.announceType {
284-
285285
case announceTypeSimple:
286286
p.queueSend(func() { p.SendAnnounce(announce) })
287287
case announceTypeSigned:
@@ -290,7 +290,6 @@ func (pm *ProtocolManager) blockLoop() {
290290
signedAnnounce.sign(pm.server.privateKey)
291291
signed = true
292292
}
293-
294293
p.queueSend(func() { p.SendAnnounce(signedAnnounce) })
295294
}
296295
}

0 commit comments

Comments
 (0)