We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
privatesend start
1 parent c0ad1f6 commit 6d8b594Copy full SHA for 6d8b594
src/rpc/masternode.cpp
@@ -54,7 +54,8 @@ UniValue privatesend(const JSONRPCRequest& request)
54
if(request.params[0].get_str() == "start") {
55
{
56
LOCK(pwalletMain->cs_wallet);
57
- EnsureWalletIsUnlocked();
+ if (pwalletMain->IsLocked(true))
58
+ throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please unlock wallet for mixing with walletpassphrase first.");
59
}
60
61
privateSendClient.fEnablePrivateSend = true;
0 commit comments