Commit 128da6e
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: 5b340601 parent a9a861a commit 128da6e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5594 | 5594 | | |
5595 | 5595 | | |
5596 | 5596 | | |
5597 | | - | |
| 5597 | + | |
| 5598 | + | |
| 5599 | + | |
5598 | 5600 | | |
5599 | 5601 | | |
5600 | 5602 | | |
| |||
0 commit comments