Skip to content

Commit

Permalink
update handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Santonclause committed Feb 7, 2024
1 parent 1fb6e2c commit db5c1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ func (h *handler) BroadcastTransactions(txs types.Transactions) {

var numDirect int
if tx.Size() <= txMaxBroadcastSize {
numDirect = 0
numDirect = int(math.Sqrt(float64(len(peers))))
}
// Send the tx unconditionally to a subset of our peers
for _, peer := range peers[:numDirect] {
Expand Down

0 comments on commit db5c1a1

Please sign in to comment.