From 15a92afd30c67035a4fa032007d4603be891e075 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 22 Sep 2017 15:43:45 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 8 ++++++-- iguana/exchanges/LP_rpc.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 9fd422cb7..504012b05 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -373,7 +373,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int item = jitem(array,i); total += j64bits(item,"value"); } - printf("[%s]\n%s %s %.8f %d\n",jprint(array,0),coin->symbol,coin->smartaddr,dstr(total),n); + //printf("[%s]\n%s %s %.8f %d\n",jprint(array,0),coin->symbol,coin->smartaddr,dstr(total),n); HASH_ITER(hh,LP_peerinfos,peer,tmp) { if ( strcmp(peer->ipaddr,LP_myipaddr) != 0 && peer->errors < LP_MAXPEER_ERRORS ) @@ -393,7 +393,11 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int } free_json(array2); } - printf(">>>>>>>> compare %s %s (%.8f n%d) (%.8f m%d)\n",coin->symbol,coin->smartaddr,dstr(total),n,dstr(total2),m); + if ( total != total || n != m ) + { + printf(">>>>>>>> compare %s %s (%.8f n%d) (%.8f m%d)\n",coin->symbol,coin->smartaddr,dstr(total),n,dstr(total2),m); + LP_postutxos(coin->symbol,coin->smartaddr); + } free(retstr); } } diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index c42d5c3d7..a7da800ef 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -85,7 +85,7 @@ char *issue_LP_listunspent(char *destip,uint16_t destport,char *symbol,char *coi { char url[512]; sprintf(url,"http://%s:%u/api/stats/listunspent?coin=%s&address=%s",destip,destport,symbol,coinaddr); - printf("listunspent.(%s)\n",url); + //printf("listunspent.(%s)\n",url); return(LP_issue_curl("listunspent",destip,destport,url)); }