From c1d7ff1dcb4427746b923f8b4664131f5be56970 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Mar 2018 23:50:47 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 2 +- iguana/exchanges/LP_utxo.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index ed8ef1c62..f9563e78a 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -434,7 +434,7 @@ cJSON *LP_listunspent(char *symbol,char *coinaddr,bits256 reftxid,bits256 reftxi else numconfs = 1; sprintf(buf,"[%d, 99999999, [\"%s\"]]",numconfs,coinaddr); retjson = bitcoin_json(coin,"listunspent",buf); -printf("LP_listunspent.(%s %s) -> %s\n",symbol,coinaddr,jprint(retjson,0)); +//printf("LP_listunspent.(%s %s) -> %s\n",symbol,coinaddr,jprint(retjson,0)); if ( (n= cJSON_GetArraySize(retjson)) > 0 ) { array = cJSON_CreateArray(); diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index a420b969e..b8e7835e7 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -677,6 +677,7 @@ cJSON *LP_address_balance(struct iguana_info *coin,char *coinaddr,int32_t electr { if ( (array= LP_listunspent(coin->symbol,coinaddr,zero,zero)) != 0 ) { + printf("got address balance (%s)\n",jprint(array,0)); if ( (n= cJSON_GetArraySize(array)) > 0 ) { for (i=0; isymbol,coin->coinaddr); + printf("balance %.8f vs balance2 %.8f\n",dstr(balance),dstr(balance2)); } else {