|
|
@ -414,8 +414,8 @@ cJSON *kmd_listaddress(struct iguana_info *coin,char *coinaddr,int32_t mode,cJSO |
|
|
|
else if ( mode == 2 ) |
|
|
|
{ |
|
|
|
jaddi(array,kmd_transactionjson(ptr,"received")); |
|
|
|
if ( spent != 0 ) |
|
|
|
jaddi(array,kmd_transactionjson(spent,"sent")); |
|
|
|
//if ( spent != 0 )
|
|
|
|
// jaddi(array,kmd_transactionjson(spent,"sent"));
|
|
|
|
} |
|
|
|
flag = 1; |
|
|
|
} |
|
|
@ -453,6 +453,7 @@ cJSON *kmd_listtransactions(struct iguana_info *coin,char *coinaddr,int32_t coun |
|
|
|
if ( count == 0 ) |
|
|
|
count = 100; |
|
|
|
array = kmd_listaddress(coin,coinaddr,2,0,1); |
|
|
|
array = kmd_listaddress(coin,coinaddr,1,array,1); |
|
|
|
return(array); |
|
|
|
} |
|
|
|
|
|
|
|