Skip to content

Commit fc21bb4

Browse files
author
MarcoFalke
committed
Merge #15245: remove deprecated mentions of signrawtransaction from fundraw help
851380c remove deprecated mentions of signrawtransaction from fundraw help (Gregory Sanders) Pull request description: RPC call has been removed as of 0.17.99. Tree-SHA512: a6a12a0e4572acd9b532c1719be85ed6f29d1c1a28f9ce691398528b8dde4fb4a3222b8f68632fcb1a8eddfe2d31e96d5efd5bc51c041af8e7cb99b61ca3a167
2 parents bbdcc0b + 851380c commit fc21bb4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

contrib/bitcoin-cli.bash-completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ _bitcoin_cli() {
5050
COMPREPLY=( $( compgen -W "true false" -- "$cur" ) )
5151
return 0
5252
;;
53-
signrawtransaction)
53+
signrawtransactionwithkey|signrawtransactionwithwallet)
5454
COMPREPLY=( $( compgen -W "ALL NONE SINGLE ALL|ANYONECANPAY NONE|ANYONECANPAY SINGLE|ANYONECANPAY" -- "$cur" ) )
5555
return 0
5656
;;

src/bitcoin-tx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void SetupBitcoinTxArgs()
6262
"This command requires JSON registers:"
6363
"prevtxs=JSON object, "
6464
"privatekeys=JSON object. "
65-
"See signrawtransaction docs for format of sighash flags, JSON objects.", false, OptionsCategory::COMMANDS);
65+
"See signrawtransactionwithkey docs for format of sighash flags, JSON objects.", false, OptionsCategory::COMMANDS);
6666

6767
gArgs.AddArg("load=NAME:FILENAME", "Load JSON file FILENAME into register NAME", false, OptionsCategory::REGISTER_COMMANDS);
6868
gArgs.AddArg("set=NAME:JSON-STRING", "Set register NAME to given JSON-STRING", false, OptionsCategory::REGISTER_COMMANDS);

src/rpc/client.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ static const CRPCConvertParam vRPCConvertParams[] =
8989
{ "createrawtransaction", 2, "locktime" },
9090
{ "createrawtransaction", 3, "replaceable" },
9191
{ "decoderawtransaction", 1, "iswitness" },
92-
{ "signrawtransaction", 1, "prevtxs" },
93-
{ "signrawtransaction", 2, "privkeys" },
9492
{ "signrawtransactionwithkey", 1, "privkeys" },
9593
{ "signrawtransactionwithkey", 2, "prevtxs" },
9694
{ "signrawtransactionwithwallet", 1, "prevtxs" },

src/txmempool.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,8 @@ class CTxMemPool
746746
* This allows transaction replacement to work as expected, as you want to
747747
* have all inputs "available" to check signatures, and any cycles in the
748748
* dependency graph are checked directly in AcceptToMemoryPool.
749-
* It also allows you to sign a double-spend directly in signrawtransaction,
749+
* It also allows you to sign a double-spend directly in
750+
* signrawtransactionwithkey and signrawtransactionwithwallet,
750751
* as long as the conflicting transaction is not yet confirmed.
751752
*/
752753
class CCoinsViewMemPool : public CCoinsViewBacked

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,8 @@ static UniValue fundrawtransaction(const JSONRPCRequest& request)
30283028
"This will not modify existing inputs, and will add at most one change output to the outputs.\n"
30293029
"No existing outputs will be modified unless \"subtractFeeFromOutputs\" is specified.\n"
30303030
"Note that inputs which were signed may need to be resigned after completion since in/outputs have been added.\n"
3031-
"The inputs added will not be signed, use signrawtransaction for that.\n"
3031+
"The inputs added will not be signed, use signrawtransactionwithkey\n"
3032+
" or signrawtransactionwithwallet for that.\n"
30323033
"Note that all existing inputs must have their previous output transaction be in the wallet.\n"
30333034
"Note that all inputs selected must be of standard form and P2SH scripts must be\n"
30343035
"in the wallet using importaddress or addmultisigaddress (to calculate fees).\n"
@@ -3077,7 +3078,7 @@ static UniValue fundrawtransaction(const JSONRPCRequest& request)
30773078
"\nAdd sufficient unsigned inputs to meet the output value\n"
30783079
+ HelpExampleCli("fundrawtransaction", "\"rawtransactionhex\"") +
30793080
"\nSign the transaction\n"
3080-
+ HelpExampleCli("signrawtransaction", "\"fundedtransactionhex\"") +
3081+
+ HelpExampleCli("signrawtransactionwithwallet", "\"fundedtransactionhex\"") +
30813082
"\nSend the transaction\n"
30823083
+ HelpExampleCli("sendrawtransaction", "\"signedtransactionhex\"")
30833084
},

0 commit comments

Comments
 (0)