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 23ba94b commit fcac40aCopy full SHA for fcac40a
src/rpc/masternode.cpp
@@ -53,7 +53,8 @@ UniValue privatesend(const JSONRPCRequest& request)
53
if(request.params[0].get_str() == "start") {
54
{
55
LOCK(pwalletMain->cs_wallet);
56
- EnsureWalletIsUnlocked();
+ if (pwalletMain->IsLocked(true))
57
+ throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please unlock wallet for mixing with walletpassphrase first.");
58
}
59
60
privateSendClient.fEnablePrivateSend = true;
0 commit comments