From 7d756ffb56760f1ef975ca947497a41db43cee4a Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 7 Nov 2017 20:30:31 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index a2537ba16..eceb35d2a 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -892,7 +892,6 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_ } else { - free_json(txobj); if ( LP_inventory_prevent(1,coin->symbol,up->U.txid,up->U.vout) == 0 ) { if ( min1 == 0 || up->U.value < min1->U.value ) @@ -904,6 +903,9 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_ } else min1 = up; } } else utxos[j] = 0; + if ( utxos[j] != 0 ) + printf("gettxout j.%d (%s)\n",j,jprint(txobj,0)); + free_json(txobj); } } else utxos[j] = 0; } @@ -976,7 +978,7 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_ vp->suppress_pubkeys = suppress_pubkeys; vp->ignore_cltverr = ignore_cltverr; jaddi(vins,LP_inputjson(up->U.txid,up->U.vout,spendscriptstr)); - if ( remains <= 0 && i >= numpre ) + if ( remains <= 0 && i >= numpre-1 ) break; if ( numunspents == 0 ) {