diff --git a/eth/peer.go b/eth/peer.go index 468cfb918..21b82a19c 100644 --- a/eth/peer.go +++ b/eth/peer.go @@ -262,7 +262,7 @@ func (p *peer) announceTransactions(removePeer func(string)) { queue = append(queue, hashes...) if len(queue) > maxQueuedTxAnns { // Fancy copy and resize to ensure buffer doesn't grow indefinitely - queue = queue[:copy(queue, queue[len(queue)-maxQueuedTxs:])] + queue = queue[:copy(queue, queue[len(queue)-maxQueuedTxAnns:])] } case <-done: