From 828dfa8cad30686b68e2abf88599178665ae717e Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Jan 2018 12:09:39 +0700 Subject: [PATCH] Fix LP_swap_spendtxid --- iguana/exchanges/LP_transaction.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index cf0286ff8..679d8a8e6 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -1640,7 +1640,7 @@ bits256 _LP_swap_spendtxid(char *symbol,char *destaddr,char *coinaddr,bits256 ut bits256 LP_swap_spendtxid(char *symbol,char *destaddr,bits256 utxotxid,int32_t utxovout) { - bits256 spendtxid,txid,vintxid; int32_t spendvin,i,m,n; char coinaddr[64]; cJSON *array,*vins,*vin,*txobj; struct iguana_info *coin; + bits256 spendtxid,txid,vintxid; int32_t spendvin,i,j,m,n; char coinaddr[64]; cJSON *array,*vins,*vin,*txobj; struct iguana_info *coin; // listtransactions or listspents coinaddr[0] = 0; memset(&spendtxid,0,sizeof(spendtxid)); @@ -1662,14 +1662,14 @@ bits256 LP_swap_spendtxid(char *symbol,char *destaddr,bits256 utxotxid,int32_t u if ( (vins= jarray(&m,txobj,"vin")) != 0 ) { //printf("vins.(%s)\n",jprint(vins,0)); - if ( utxovout < m ) + for (j=0; j