From e0b2d43a2daf11379429043e460a5d60d6f7c5bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 16 Sep 2017 14:49:38 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_include.h | 2 +- iguana/exchanges/LP_utxo.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index b623c71a2..e80e60318 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -219,7 +219,7 @@ struct LP_address_utxo { struct LP_address_utxo *next,*prev; struct _LP_utxoinfo U; - uint32_t height,SPV,spendheight; + uint32_t SPV,spendheight; }; struct LP_address diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index ddf85de98..1f0cfcfda 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -164,9 +164,12 @@ cJSON *LP_address_utxos(struct iguana_info *coin,char *coinaddr,int32_t electrum { DL_FOREACH_SAFE(ap->utxos,up,tmp) { - char str[65]; printf("%s/v%d %.8f ht.%d spend.%d\n",bits256_str(str,up->U.txid),up->U.vout,dstr(up->U.value),up->height,up->spendheight); + char str[65]; printf("LP_address_utxos %s/v%d %.8f ht.%d spend.%d\n",bits256_str(str,up->U.txid),up->U.vout,dstr(up->U.value),up->U.height,up->spendheight); if ( up->spendheight <= 0 ) + { jaddi(array,LP_address_item(coin,up,electrumret)); + printf("new array %s\n",jprint(array,0)); + } } } portable_mutex_unlock(&coin->txmutex);