eth/protocols/eth: clean up duplicate assignment

This commit is contained in:
Felix Lange 2026-07-15 13:44:08 +02:00
parent ce581fd394
commit e20246b2aa

View file

@ -143,12 +143,8 @@ func (p *Peer) announceTransactions() {
pendingSizes = append(pendingSizes, uint32(meta.Size)) pendingSizes = append(pendingSizes, uint32(meta.Size))
} }
size += common.HashLength size += common.HashLength
processed[count] = true
} else {
// Transaction is no longer in the pool; drop it from the queue.
processed[count] = true
} }
processed[count] = true
} }
// Shift and trim queue using processed map // Shift and trim queue using processed map
var remaining []common.Hash var remaining []common.Hash