Skip to content

Commit

Permalink
Don't bother registering the multisend command
Browse files Browse the repository at this point in the history
This command has been disabled since v4.1.0, don't bother registering it
 anymore so that the runtime error message isn't shown when using the
 `help` RPC command

Github-Pull: #2088
Rebased-From: 2dd232d
  • Loading branch information
Fuzzbawls committed Dec 21, 2020
1 parent bbbc7c9 commit 41fc192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3890,10 +3890,10 @@ unsigned int sumMultiSend()
return sum;
}

/* disable multisend
UniValue multisend(const JSONRPCRequest& request)
{
throw std::runtime_error("Multisend is disabled in this wallet version");
/* disable multisend
CWalletDB walletdb(pwalletMain->strWalletFile);
bool fFileBacked;
//MultiSend Commands
Expand Down Expand Up @@ -4042,8 +4042,8 @@ UniValue multisend(const JSONRPCRequest& request)
}
}
return printMultiSend();
*/
}
*/


UniValue getsaplingnotescount(const JSONRPCRequest& request)
Expand Down Expand Up @@ -4145,7 +4145,7 @@ static const CRPCCommand commands[] =
{ "wallet", "delegatorremove", &delegatorremove, true },
{ "wallet", "bip38encrypt", &bip38encrypt, true },
{ "wallet", "bip38decrypt", &bip38decrypt, true },
{ "wallet", "multisend", &multisend, false },
//{ "wallet", "multisend", &multisend, false },

/** Sapling functions */
{ "wallet", "getnewshieldedaddress", &getnewshieldedaddress, true },
Expand Down

0 comments on commit 41fc192

Please sign in to comment.