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
  • Loading branch information
Fuzzbawls committed Dec 20, 2020
1 parent 87c12e5 commit 2dd232d
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 2dd232d

Please sign in to comment.