Fix getbalance() bug c++11
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Fri, 17 Apr 2020 22:05:46 +0000 (01:05 +0300)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 22:05:46 +0000 (01:05 +0300)
src/rpcwallet.cpp

index 8f82c97..f624205 100644 (file)
@@ -581,7 +581,7 @@ int64_t GetAccountBalance(const string& strAccount, int nMinDepth, const isminef
 
 Value getbalance(const Array& params, bool fHelp)
 {
-    if (fHelp || params.size() > 2)
+    if (fHelp || params.size() > 3)
         throw runtime_error(
             "getbalance [account] [minconf=1] [watchonly=0]\n"
             "If [account] is not specified, returns the server's total available balance.\n"