From 0c30756bd149e613b76405a14f58142931191381 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 13 Nov 2017 23:15:35 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 574fcbbb2..661319305 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -989,7 +989,7 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_ jaddi(vins,LP_inputjson(up->U.txid,up->U.vout,spendscriptstr)); if ( remains <= 0 && i >= numpre-1 ) break; - if ( numunspents == 0 ) + if ( numunspents < 0 ) { printf("total %.8f not enough for amount %.8f\n",dstr(total),dstr(amount)); return(0);