Commit 5b34060
committed
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.1 parent 228e920 commit 5b34060
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5666 | 5666 | | |
5667 | 5667 | | |
5668 | 5668 | | |
5669 | | - | |
| 5669 | + | |
| 5670 | + | |
| 5671 | + | |
5670 | 5672 | | |
5671 | 5673 | | |
5672 | 5674 | | |
| |||
0 commit comments