free tx rate limiter potentially causes more traffic not less?



Summary:

The writer experimented with the AskFor() function and observed that changing the time waited from 2 minutes to 10 seconds caused an increase in traffic between peers when used with the -limitfreerelay option. This is because the transaction is asked for from all connected peers, but AlwaysHave never becomes true as it's never stored, always rejected, so it effectively getdatas the transaction from every single connected peer. The writer suggests setting up a memory pool for rejected transactions and blocks to continue ignoring them. The writer admits to being at the "trying to understand the code/protocol/algorithm" stage and acknowledges the possibility of making false assumptions about the code's intentions.


Updated on: 2023-06-06T04:30:42.394660+00:00