aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2023-05-08 17:14:53 +1000
committerfanquake <fanquake@gmail.com>2023-05-11 17:20:38 +0100
commit06731d19bc00820037961138c79cf3d3677e39ba (patch)
tree649b630d831cb8772084ca1b9de782398fffd8dd /configure.ac
parentd0a2c87214d2a8ad350c86fd4a3202695569ca99 (diff)
downloadbitcoin-06731d19bc00820037961138c79cf3d3677e39ba.tar.xz
net_processing: Boost inv trickle rate
If transactions are being added to the mempool at a rate faster than 7tx/s (INVENTORY_BROADCAST_PER_SECOND) then peers' inventory_to_send queue can become relatively large. If this happens, increase the number of txids we include in an INV message (normally capped at 35) by 5 for each 1000 txids in the queue. This will tend to clear a temporary excess out reasonably quickly; an excess of 4000 invs to send will be cleared down to 1000 in about 30 minutes, while an excess of 20000 invs would be cleared down to 1000 in about 60 minutes. Github-Pull: #27610 Rebased-From: 5b3406094f2679dfb3763de4414257268565b943
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions