Skip to content

Commit 839c3f7

Browse files
committed
[rpc] Remove signrawtransaction warning
signrawtransaction was deprecated in 0.17 and removed in 0.18. A warning was left in place to tell users to migrate to using signrawtransactionswithwallet or signrawtransactionwithkey. Remove the warning now that it's been two releases since the method was removed.
1 parent abd914e commit 839c3f7

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

src/qt/rpcconsole.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const QStringList historyFilter = QStringList()
6969
<< "importmulti"
7070
<< "sethdseed"
7171
<< "signmessagewithprivkey"
72-
<< "signrawtransaction"
7372
<< "signrawtransactionwithkey"
7473
<< "walletpassphrase"
7574
<< "walletpassphrasechange"

src/rpc/rawtransaction.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,14 +1021,6 @@ static UniValue signrawtransactionwithkey(const JSONRPCRequest& request)
10211021
return SignTransaction(*g_rpc_interfaces->chain, mtx, request.params[2], &keystore, true, request.params[3]);
10221022
}
10231023

1024-
UniValue signrawtransaction(const JSONRPCRequest& request)
1025-
{
1026-
// This method should be removed entirely in V0.19, along with the entries in the
1027-
// CRPCCommand table and rpc/client.cpp.
1028-
throw JSONRPCError(RPC_METHOD_DEPRECATED, "signrawtransaction was removed in v0.18.\n"
1029-
"Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet");
1030-
}
1031-
10321024
static UniValue sendrawtransaction(const JSONRPCRequest& request)
10331025
{
10341026
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
@@ -2078,7 +2070,6 @@ static const CRPCCommand commands[] =
20782070
{ "rawtransactions", "decodescript", &decodescript, {"hexstring"} },
20792071
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, {"hexstring","allowhighfees|maxfeerate"} },
20802072
{ "rawtransactions", "combinerawtransaction", &combinerawtransaction, {"txs"} },
2081-
{ "hidden", "signrawtransaction", &signrawtransaction, {"hexstring","prevtxs","privkeys","sighashtype"} },
20822073
{ "rawtransactions", "signrawtransactionwithkey", &signrawtransactionwithkey, {"hexstring","privkeys","prevtxs","sighashtype"} },
20832074
{ "rawtransactions", "testmempoolaccept", &testmempoolaccept, {"rawtxs","allowhighfees|maxfeerate"} },
20842075
{ "rawtransactions", "decodepsbt", &decodepsbt, {"psbt"} },

test/functional/rpc_signrawtransaction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class SignRawTransactionsTest(BitcoinTestFramework):
1515
def set_test_params(self):
1616
self.setup_clean_chain = True
1717
self.num_nodes = 2
18-
self.extra_args = [["-deprecatedrpc=signrawtransaction"], []]
1918

2019
def skip_test_if_missing_module(self):
2120
self.skip_if_no_wallet()

0 commit comments

Comments
 (0)