From 02c5be9dd0d17b94de89ce2eb6f84c157f088f96 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 18 Apr 2020 01:06:39 +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 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" -- 1.7.1