From f9ee348f60e5fd7ab79c30fcb2b7339c9bee1c31 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 18 Apr 2020 01:05:46 +0300 Subject: [PATCH] Fix getbalance() bug --- src/rpcwallet.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 8f82c97..f624205 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -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" -- 1.7.1