@@ -437,14 +437,14 @@ func (h *handler) BroadcastTransactions(txs types.Transactions, propagate bool)
437
437
// Broadcast transactions to a batch of peers not knowing about it
438
438
if propagate {
439
439
for _ , tx := range txs {
440
- peers := h .peers .ethPeersWithoutTransacion (tx .Hash ())
440
+ peers := h .peers .ethPeersWithoutTransaction (tx .Hash ())
441
441
442
442
// Send the block to a subset of our peers
443
443
transfer := peers [:int (math .Sqrt (float64 (len (peers ))))]
444
444
for _ , peer := range transfer {
445
445
txset [peer ] = append (txset [peer ], tx .Hash ())
446
446
}
447
- log .Trace ("Broadcast transaction" , "hash" , tx .Hash (), "recipients" , len (peers ))
447
+ log .Trace ("Broadcast transaction" , "hash" , tx .Hash (), "recipients" , len (transfer ))
448
448
}
449
449
for peer , hashes := range txset {
450
450
peer .AsyncSendTransactions (hashes )
@@ -453,7 +453,7 @@ func (h *handler) BroadcastTransactions(txs types.Transactions, propagate bool)
453
453
}
454
454
// Otherwise only broadcast the announcement to peers
455
455
for _ , tx := range txs {
456
- peers := h .peers .ethPeersWithoutTransacion (tx .Hash ())
456
+ peers := h .peers .ethPeersWithoutTransaction (tx .Hash ())
457
457
for _ , peer := range peers {
458
458
annos [peer ] = append (annos [peer ], tx .Hash ())
459
459
}
0 commit comments