Skip to content

Commit 07e01d6

Browse files
committed
rpc: sendrawtransaction unconditionality/privacy note
In sendrawtransaction RPCHelpMan, mention unconditionality and privacy as per http://www.erisian.com.au/bitcoin-core-dev/log-2019-07-25.html#l-522 Thank you to MarcoFalke and laanwj for their review and suggestions.
1 parent a54a120 commit 07e01d6

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)