From b3500342de863937ac5e144bb5c34ef6c24d557c Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 14 Sep 2017 22:23:14 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_scan.c | 4 ++-- iguana/exchanges/LP_socket.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_scan.c b/iguana/exchanges/LP_scan.c index 1826c9d84..088a85cb7 100644 --- a/iguana/exchanges/LP_scan.c +++ b/iguana/exchanges/LP_scan.c @@ -575,7 +575,7 @@ int64_t basilisk_txvalue(char *symbol,bits256 txid,int32_t vout) uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout) { - struct LP_transaction *tx; struct iguana_info *coin; char str[65]; + struct LP_transaction *tx; struct iguana_info *coin; char str[65],str2[65]; if ( (coin= LP_coinfind(symbol)) == 0 || coin->inactive != 0 ) return(0); if ( coinaddr != 0 ) @@ -592,7 +592,7 @@ uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout) { if ( bits256_nonz(tx->outpoints[vout].spendtxid) != 0 ) { - printf("LP_txvalue %s/v%d is spent\n",bits256_str(str,txid),vout); + printf("LP_txvalue %s/v%d is spent at %s\n",bits256_str(str,txid),vout,bits256_str(str2,tx->outpoints[vout].spendtxid)); return(0); } else diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index 789ee331e..698932c8e 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -451,7 +451,7 @@ cJSON *electrum_address_getmempool(char *symbol,struct electrum_info *ep,cJSON * { cJSON *retjson; struct iguana_info *coin = LP_coinfind(symbol); retjson = electrum_strarg(symbol,ep,retjsonp,"blockchain.address.get_mempool",addr,ELECTRUM_TIMEOUT); - //printf("MEMPOOL.(%s)\n",jprint(retjson,0)); + printf("MEMPOOL.(%s)\n",jprint(retjson,0)); electrum_process_array(coin,retjson); return(retjson); }