From 71a4444ad3291b4a6c751be2a2a8eb3fcfc84e19 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 22 Sep 2017 12:22:46 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 1861f3bb9..9a2675245 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/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); 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);