From c5cc0b9d8f0480b12abaa321ae0073fea2e86faa Mon Sep 17 00:00:00 2001 From: lateminer Date: Fri, 11 Jan 2019 21:49:22 +0300 Subject: [PATCH] Update description of walletpassphrase RPC call --- src/wallet/rpcwallet.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index ab34ceb5d..e4bb64887 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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 \n" + "walletpassphrase [stakingonly]\n" "Stores the wallet decryption key in memory for 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; }