|
|
@ -727,13 +727,9 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr) |
|
|
|
int32_t i,v,height,n=0; uint64_t value; bits256 txid; char buf[512]; cJSON *array,*item; struct iguana_info *coin = LP_coinfind(symbol); |
|
|
|
if ( coin != 0 ) |
|
|
|
{ |
|
|
|
if ( coin->electrum != 0 ) |
|
|
|
if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) < 0 ) |
|
|
|
{ |
|
|
|
if ( (array= LP_listunspent(coin->symbol,coinaddr)) != 0 ) |
|
|
|
{ |
|
|
|
n = cJSON_GetArraySize(array); |
|
|
|
free_json(array); |
|
|
|
} else n = 0; |
|
|
|
n = LP_listunspent_issue(symbol,coinaddr); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
@ -754,7 +750,6 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//printf("need to verify\n");
|
|
|
|
} |
|
|
|
} |
|
|
|
return(n); |
|
|
|