From e3bb6ed01e546357f30dbd19f0167e60b0f574c4 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 2 Sep 2021 18:50:56 -0400 Subject: [PATCH] listaddresses takes no params and remove accounts from docs --- src/wallet/rpcwallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index c1ad28c2a..38546dcea 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -428,12 +428,12 @@ UniValue listaddresses(const UniValue& params, bool fHelp, const CPubKey& mypk) if (!EnsureWalletIsAvailable(fHelp)) return NullUniValue; - if (fHelp || params.size() != 1) + if (fHelp || params.size() != 0) throw runtime_error( "listaddresses\n" "\nResult:\n" "[ (json array of string)\n" - " \"" + strprintf("%s",hush_chainname()) + "_address\" (string) a " + strprintf("%s",hush_chainname()) + " address associated with the given account\n" + " \"" + strprintf("%s",hush_chainname()) + "_address\" (string) a " + strprintf("%s",hush_chainname()) + " address\n" " ,...\n" "]\n" "\nExamples:\n"