Skip to content

Commit ad4b164

Browse files
committed
chore: drop deprecated RPC instantsendtoaddress
1 parent da8a475 commit ad4b164

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

doc/release-notes-6686.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Updated RPCs
2+
------------
3+
4+
* The `instantsendtoaddress` RPC was deprecated in Dash Core v0.15 and is now removed.

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -422,24 +422,6 @@ static RPCHelpMan sendtoaddress()
422422
};
423423
}
424424

425-
// DEPRECATED
426-
static RPCHelpMan instantsendtoaddress()
427-
{
428-
return RPCHelpMan{"instantsendtoaddress",
429-
"instantsendtoaddress is deprecated and sendtoaddress should be used instead",
430-
{},
431-
RPCResult{
432-
RPCResult::Type::STR_HEX, "txid", "The transaction id."
433-
},
434-
RPCExamples{""},
435-
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
436-
{
437-
LogPrintf("WARNING: Used deprecated RPC method 'instantsendtoaddress'! Please use 'sendtoaddress' instead\n");
438-
return sendtoaddress().HandleRequest(request);
439-
},
440-
};
441-
}
442-
443425
static RPCHelpMan listaddressgroupings()
444426
{
445427
return RPCHelpMan{"listaddressgroupings",
@@ -4639,7 +4621,6 @@ Span<const CRPCCommand> GetWalletRPCCommands()
46394621
static const CRPCCommand commands[] =
46404622
{ // category actor (function)
46414623
// ------------------ ------------------------
4642-
{ "hidden", &instantsendtoaddress, },
46434624
{ "rawtransactions", &fundrawtransaction, },
46444625
{ "wallet", &abandontransaction, },
46454626
{ "wallet", &abortrescan, },

0 commit comments

Comments
 (0)