This PR tries to fix https://github.com/bitcoin/bitcoin/issues/16418 https://github.com/bitcoin/bitcoin/issues/28371
Currently, it is possible that we have an insufficient amount of outbound peers relaying our transactions (as in << 8). This can happen for two main reasons:
-block-only
, so it could be the case that some of out peers simply do not forward our tx data (this counting the two block-relay-only
connections, which are purposely like this).minfeefilter
, resulting in our transactions being simply droppedFurthermore, if less peers are relaying our transactions it is easier for network observers to infer the origin or a transaction (as the node IP), given there is less noise in the flooding of this data to the network (there are less nodes initially broadcasting the data so it is easier to correlate the first announcer to the origin).
This PR is trying to fix the first described point.