From: CryptoManiac Date: Fri, 17 Apr 2020 22:06:39 +0000 (+0300) Subject: Fix getbalance() bug X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=refs%2Fheads%2Fc%2B%2B17 Fix getbalance() bug --- diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 0e9547f..00e4f58 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -582,7 +582,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"