Skip to content

Broadcast a transaction to specific nodes #21876

@ghost

Description

Is your feature request related to a problem? Please describe.
There is no argument in sendrawtransaction to mention the peers

Describe the solution you'd like
Add an argument in sendrawtransaction that accepts one or more addresses for nodes.

Describe alternatives you've considered

https://github.com/libbtc/libbtc#send-a-raw-transaction-to-specific-peers-on-mainnet-and-show-debug-infos-use-a-timeout-of-5s

Additional context

Note that the transaction will be sent unconditionally to all peers, so using this
for manual rebroadcast may degrade privacy by leaking the transaction's origin, as
nodes will normally not rebroadcast non-wallet transactions already in their mempool.

https://bitcoincore.org/en/doc/0.21.0/rpc/rawtransactions/sendrawtransaction/

Rebroadcast thing mentioned above will be fixed in #21061 however this option will still be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions