bitcoinknots/bitcoin

Broadcast a transaction to specific nodes

Open

#50 opened on Oct 3, 2022

 (2 comments) (0 reactions) (0 assignees)C++ (160 forks)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (677 stars)
PR merge metrics
 (PR metrics pending)

Description

Is your feature request related to a problem? Please describe.

It would be great if users could select a node for broadcasting transaction instead of all nodes. Recently @openoms wanted to do this : https://twitter.com/openoms/status/1573594264730312704

Describe the solution you'd like

A parameter in sendrawtransaction that could be used to select node with node id.

Describe alternatives you've considered

libbtc library: https://twitter.com/1440000bytes/status/1574225052240777216

Additional context

This would improve privacy and requires a new function in src\net_processing.cpp similar to RelayTransaction() or add some lines in the same function.

Contributor guide