Update description of walletpassphrase RPC call

This commit is contained in:
lateminer
2019-01-11 21:49:22 +03:00
parent 26b6e0439c
commit c5cc0b9d8f

View File

@@ -1849,13 +1849,13 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp)
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2))
throw runtime_error(
"walletpassphrase \"passphrase\" timeout staking\n"
"walletpassphrase \"passphrase\" timeout ( stakingonly )\n"
"\nStores the wallet decryption key in memory for 'timeout' seconds.\n"
"This is needed prior to performing transactions related to private keys such as sending blackcoins\n"
"\nArguments:\n"
"1. \"passphrase\" (string, required) The wallet passphrase\n"
"2. timeout (numeric, required) The time to keep the decryption key in seconds.\n"
"3. staking (bool, optional, default=false) Unlock wallet for staking only.\n"
"3. stakingonly (bool, optional, default=false) Unlock wallet for staking only.\n"
"\nNote:\n"
"Issuing the walletpassphrase command while the wallet is already unlocked will set a new unlock\n"
"time that overrides the old one.\n"
@@ -1889,7 +1889,7 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp)
}
else
throw runtime_error(
"walletpassphrase <passphrase> <timeout>\n"
"walletpassphrase <passphrase> <timeout> [stakingonly]\n"
"Stores the wallet decryption key in memory for <timeout> seconds.");
pwalletMain->TopUpKeyPool();
@@ -1901,9 +1901,9 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp)
// ppcoin: if user OS account compromised prevent trivial sendmoney commands
if (params.size() > 2)
fWalletUnlockStakingOnly = params[2].get_bool();
fWalletUnlockStakingOnly = params[2].get_bool();
else
fWalletUnlockStakingOnly = false;
fWalletUnlockStakingOnly = false;
return NullUniValue;
}