From 32ffd9b9adff1555a7fdff9881ee1dde0feee932 Mon Sep 17 00:00:00 2001 From: andyzhang2023 Date: Fri, 12 Jul 2024 16:13:40 +0800 Subject: [PATCH] enlarge the buffer size of transactions broadcaster --- eth/protocols/eth/peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go index 98ad22a8cf..5880fb68d4 100644 --- a/eth/protocols/eth/peer.go +++ b/eth/protocols/eth/peer.go @@ -39,11 +39,11 @@ const ( // maxQueuedTxs is the maximum number of transactions to queue up before dropping // older broadcasts. - maxQueuedTxs = 4096 + maxQueuedTxs = 8192 // maxQueuedTxAnns is the maximum number of transaction announcements to queue up // before dropping older announcements. - maxQueuedTxAnns = 4096 + maxQueuedTxAnns = 8192 // maxQueuedBlocks is the maximum number of block propagations to queue up before // dropping broadcasts. There's not much point in queueing stale blocks, so a few