From 7432c82dc5c4521ff80c7ac11113c435ef4461ae Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 14 Nov 2017 03:05:38 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 2 +- iguana/exchanges/LP_utxo.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 82120368d..6f54db403 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -910,7 +910,7 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_ printf("have utxotxid but wasnt found up.%p\n",up); if ( up == 0 ) { - value = LP_txvalue(coin->smartaddr,coin->symbol,utxotxid,utxovout); + value = LP_txvalue(0,coin->symbol,utxotxid,utxovout); LP_address_utxoadd("withdraw",coin,coin->smartaddr,utxotxid,utxovout,value,1,-1); printf("added after not finding\n"); } diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index bfd1103f3..5d4b5b482 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -765,13 +765,12 @@ uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout) } else if ( coin->electrum == 0 ) { - uint64_t value; char _coinaddr[64]; + uint64_t value; if ( (txobj= LP_gettxout(coin->symbol,coinaddr,txid,vout)) != 0 ) { value = LP_value_extract(txobj,0);//SATOSHIDEN * (jdouble(txobj,"value") + jdouble(txobj,"interest")); - if ( coinaddr == 0 ) - coinaddr = _coinaddr; - LP_destaddr(coinaddr,txobj); + if ( coinaddr != 0 ) + LP_destaddr(coinaddr,txobj); //printf("pruned node? LP_txvalue couldnt find %s tx %s, but gettxout %.8f\n",coin->symbol,bits256_str(str,txid),dstr(value)); if ( value != 0 ) {