From 590361d86e25c1e185d77cf1fb5c34b600621a47 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Oct 2017 17:22:41 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 3 +-- iguana/exchanges/LP_rpc.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 274d7f6d2..923f18977 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -332,7 +332,6 @@ int32_t LP_utxos_sync(struct LP_peerinfo *peer) total = 0; if ( (j= LP_listunspent_both(coin->symbol,coin->smartaddr)) == 0 ) continue; - printf("UTXO sync.%d %s -> %s\n",j,coin->symbol,peer->ipaddr); if ( (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 ) { if ( (n= cJSON_GetArraySize(array)) > 0 ) @@ -343,9 +342,9 @@ int32_t LP_utxos_sync(struct LP_peerinfo *peer) total += j64bits(item,"value"); } } - printf("n.%d total %.8f\n",n,dstr(total)); if ( n > 0 && total > 0 && (retstr= issue_LP_listunspent(peer->ipaddr,peer->port,coin->symbol,coin->smartaddr)) != 0 ) { + printf("UTXO sync.%d %s n.%d total %.8f -> %s\n",j,coin->symbol,n,dstr(total),peer->ipaddr); total2 = 0; if ( (array2= cJSON_Parse(retstr)) != 0 ) { diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 80ac137c7..be270d8c5 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -97,7 +97,7 @@ char *issue_LP_listunspent(char *destip,uint16_t destport,char *symbol,char *coi char url[512],*retstr; sprintf(url,"http://%s:%u/api/stats/listunspent?coin=%s&address=%s",destip,destport,symbol,coinaddr); retstr = LP_issue_curl("listunspent",destip,destport,url); - printf("listunspent.(%s) -> (%s)\n",url,retstr); + //printf("listunspent.(%s) -> (%s)\n",url,retstr); return(retstr); }