Add listaddresses as a new replacement for getaddressesbyaccount; cleanup

This commit is contained in:
Duke Leto
2021-09-01 20:26:59 -04:00
parent fde77094df
commit 0c6e5945a6
15 changed files with 102 additions and 69 deletions

View File

@@ -639,7 +639,7 @@ cJSON *get_rawmempool(char *refcoin,char *acname)
cJSON *get_addressutxos(char *refcoin,char *acname,char *coinaddr)
{
cJSON *retjson; char *retstr,jsonbuf[256];
if ( refcoin[0] != 0 && strcmp(refcoin,"KMD") != 0 )
if ( refcoin[0] != 0 && strcmp(refcoin,"HUSH3") != 0 )
printf("warning: assumes %s has addressindex enabled\n",refcoin);
sprintf(jsonbuf,"{\\\"addresses\\\":[\\\"%s\\\"]}",coinaddr);
if ( (retjson= get_hushcli(refcoin,&retstr,acname,"getaddressutxos",jsonbuf,"","","","","","")) != 0 )