jl777 7 years ago
parent
commit
71a4444ad3
  1. 9
      iguana/exchanges/LP_ordermatch.c

9
iguana/exchanges/LP_ordermatch.c

@ -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); 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 != 0 )
{ {
if ( coin->electrum != 0 ) if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) < 0 )
{ {
if ( (array= LP_listunspent(coin->symbol,coinaddr)) != 0 ) n = LP_listunspent_issue(symbol,coinaddr);
{
n = cJSON_GetArraySize(array);
free_json(array);
} else n = 0;
} }
else else
{ {
@ -754,7 +750,6 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
} }
} }
} }
//printf("need to verify\n");
} }
} }
return(n); return(n);

Loading…
Cancel
Save