listaddresses takes no params and remove accounts from docs

This commit is contained in:
Duke Leto
2021-09-02 18:50:56 -04:00
parent 31fa46e2a1
commit e3bb6ed01e

View File

@@ -428,12 +428,12 @@ UniValue listaddresses(const UniValue& params, bool fHelp, const CPubKey& mypk)
if (!EnsureWalletIsAvailable(fHelp)) if (!EnsureWalletIsAvailable(fHelp))
return NullUniValue; return NullUniValue;
if (fHelp || params.size() != 1) if (fHelp || params.size() != 0)
throw runtime_error( throw runtime_error(
"listaddresses\n" "listaddresses\n"
"\nResult:\n" "\nResult:\n"
"[ (json array of string)\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"
"]\n" "]\n"
"\nExamples:\n" "\nExamples:\n"