[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.
This commit is contained in:
parent
abd914ed34
commit
839c3f7c49
3 changed files with 0 additions and 11 deletions
|
@ -69,7 +69,6 @@ const QStringList historyFilter = QStringList()
|
||||||
<< "importmulti"
|
<< "importmulti"
|
||||||
<< "sethdseed"
|
<< "sethdseed"
|
||||||
<< "signmessagewithprivkey"
|
<< "signmessagewithprivkey"
|
||||||
<< "signrawtransaction"
|
|
||||||
<< "signrawtransactionwithkey"
|
<< "signrawtransactionwithkey"
|
||||||
<< "walletpassphrase"
|
<< "walletpassphrase"
|
||||||
<< "walletpassphrasechange"
|
<< "walletpassphrasechange"
|
||||||
|
|
|
@ -1021,14 +1021,6 @@ static UniValue signrawtransactionwithkey(const JSONRPCRequest& request)
|
||||||
return SignTransaction(*g_rpc_interfaces->chain, mtx, request.params[2], &keystore, true, request.params[3]);
|
return SignTransaction(*g_rpc_interfaces->chain, mtx, request.params[2], &keystore, true, request.params[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
UniValue signrawtransaction(const JSONRPCRequest& request)
|
|
||||||
{
|
|
||||||
// This method should be removed entirely in V0.19, along with the entries in the
|
|
||||||
// CRPCCommand table and rpc/client.cpp.
|
|
||||||
throw JSONRPCError(RPC_METHOD_DEPRECATED, "signrawtransaction was removed in v0.18.\n"
|
|
||||||
"Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet");
|
|
||||||
}
|
|
||||||
|
|
||||||
static UniValue sendrawtransaction(const JSONRPCRequest& request)
|
static UniValue sendrawtransaction(const JSONRPCRequest& request)
|
||||||
{
|
{
|
||||||
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
|
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
|
||||||
|
@ -2078,7 +2070,6 @@ static const CRPCCommand commands[] =
|
||||||
{ "rawtransactions", "decodescript", &decodescript, {"hexstring"} },
|
{ "rawtransactions", "decodescript", &decodescript, {"hexstring"} },
|
||||||
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, {"hexstring","allowhighfees|maxfeerate"} },
|
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, {"hexstring","allowhighfees|maxfeerate"} },
|
||||||
{ "rawtransactions", "combinerawtransaction", &combinerawtransaction, {"txs"} },
|
{ "rawtransactions", "combinerawtransaction", &combinerawtransaction, {"txs"} },
|
||||||
{ "hidden", "signrawtransaction", &signrawtransaction, {"hexstring","prevtxs","privkeys","sighashtype"} },
|
|
||||||
{ "rawtransactions", "signrawtransactionwithkey", &signrawtransactionwithkey, {"hexstring","privkeys","prevtxs","sighashtype"} },
|
{ "rawtransactions", "signrawtransactionwithkey", &signrawtransactionwithkey, {"hexstring","privkeys","prevtxs","sighashtype"} },
|
||||||
{ "rawtransactions", "testmempoolaccept", &testmempoolaccept, {"rawtxs","allowhighfees|maxfeerate"} },
|
{ "rawtransactions", "testmempoolaccept", &testmempoolaccept, {"rawtxs","allowhighfees|maxfeerate"} },
|
||||||
{ "rawtransactions", "decodepsbt", &decodepsbt, {"psbt"} },
|
{ "rawtransactions", "decodepsbt", &decodepsbt, {"psbt"} },
|
||||||
|
|
|
@ -15,7 +15,6 @@ class SignRawTransactionsTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
self.num_nodes = 2
|
self.num_nodes = 2
|
||||||
self.extra_args = [["-deprecatedrpc=signrawtransaction"], []]
|
|
||||||
|
|
||||||
def skip_test_if_missing_module(self):
|
def skip_test_if_missing_module(self):
|
||||||
self.skip_if_no_wallet()
|
self.skip_if_no_wallet()
|
||||||
|
|
Loading…
Reference in a new issue