From 510a23a2c838245cd4681ed0b4fbce48e8ebf506 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 18 Apr 2020 01:05:09 +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 eb302fa..e0839b8 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