Adds a new RPC sendrawtransactiontopeer
, which sends a single tx to a specific peer.
After the transaction is sent to the peer it is forgotten and not stored in the local mempool.
This rpc can serve several purposes. For example, it allows you to “spoof” an initial retransmission from a different “trusted” peer, making it appear as if the original participant was never aware of the transaction. It can also be useful in testing and simulation environments.
Solves #28636 and #21876 (Partially - see #33507 (review))