From d0da28a8d5f7ff0810ea4af59a037032abb589cd Mon Sep 17 00:00:00 2001 From: lateminer Date: Sun, 3 Mar 2019 20:18:20 +0300 Subject: [PATCH] Allow third argument in RPC call walletpassphrase --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index e4bb64887..2087ada1b 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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"