Skip to content

Commit f735851

Browse files
committed
Merge #16467: rpc: sendrawtransaction help privacy note
07e01d6 rpc: sendrawtransaction unconditionality/privacy note (Jon Atack) Pull request description: In sendrawtransaction RPCHelpMan, mention unconditionality and privacy as per http://www.erisian.com.au/bitcoin-core-dev/log-2019-07-25.html#l-522 before ``` $ bitcoin-cli help sendrawtransaction sendrawtransaction "hexstring" ( maxfeerate ) Submits raw transaction (serialized, hex-encoded) to local node and network. Also see createrawtransaction and signrawtransactionwithkey calls. (...) ``` after ``` $ bitcoin-cli help sendrawtransaction sendrawtransaction "hexstring" ( maxfeerate ) Submit a raw transaction (serialized, hex-encoded) to local node and network. 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. Also see createrawtransaction and signrawtransactionwithkey calls. (...) ``` ACKs for top commit: promag: ACK 07e01d6. laanwj: ACK 07e01d6 Tree-SHA512: 427b3ca29384eef271eb496b7b14e883220863543a536ddeb31940aaffd52ea0b607d929d50f2b7958514105ef7823fa05c1ee381d4a432808753c06bd97af58
2 parents 502ec02 + 07e01d6 commit f735851

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,10 @@ static UniValue signrawtransactionwithkey(const JSONRPCRequest& request)
760760
static UniValue sendrawtransaction(const JSONRPCRequest& request)
761761
{
762762
RPCHelpMan{"sendrawtransaction",
763-
"\nSubmits raw transaction (serialized, hex-encoded) to local node and network.\n"
763+
"\nSubmit a raw transaction (serialized, hex-encoded) to local node and network.\n"
764+
"\nNote that the transaction will be sent unconditionally to all peers, so using this\n"
765+
"for manual rebroadcast may degrade privacy by leaking the transaction's origin, as\n"
766+
"nodes will normally not rebroadcast non-wallet transactions already in their mempool.\n"
764767
"\nAlso see createrawtransaction and signrawtransactionwithkey calls.\n",
765768
{
766769
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The hex string of the raw transaction"},

0 commit comments

Comments
 (0)