Return help output if no address is given to z_listreceivedaddress
This commit is contained in:
@@ -3304,7 +3304,7 @@ UniValue z_listreceivedaddress(const UniValue& params, bool fHelp,const CPubKey&
|
||||
if (!EnsureWalletIsAvailable(fHelp))
|
||||
return NullUniValue;
|
||||
|
||||
if (fHelp || params.size() > 5 || params.size() == 3)
|
||||
if (fHelp || params.size() > 5 || params.size() < 1)
|
||||
throw runtime_error(
|
||||
"z_listreceivedaddress\n"
|
||||
"\nReturns received outputs.\n"
|
||||
@@ -3375,7 +3375,7 @@ UniValue z_listreceivedaddress(const UniValue& params, bool fHelp,const CPubKey&
|
||||
|
||||
UniValue ret(UniValue::VARR);
|
||||
|
||||
//param values`
|
||||
//param values
|
||||
int64_t nMinConfirms = 0;
|
||||
int64_t nFilterType = 0;
|
||||
int64_t nFilter = 999999;
|
||||
|
||||
Reference in New Issue
Block a user