Allow third argument in RPC call walletpassphrase

This commit is contained in:
lateminer
2019-03-03 20:18:20 +03:00
parent c5cc0b9d8f
commit d0da28a8d5

View File

@@ -1847,7 +1847,7 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp)
if (!EnsureWalletIsAvailable(fHelp))
return NullUniValue;
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2))
if (pwalletMain->IsCrypted() && (fHelp || params.size() < 2 || params.size() > 3))
throw runtime_error(
"walletpassphrase \"passphrase\" timeout ( stakingonly )\n"
"\nStores the wallet decryption key in memory for 'timeout' seconds.\n"