From 6e552395a7fec598f6df874bcf25bd4ae8348816 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 14 Oct 2017 13:13:24 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 18537ce9b..a8ddd2a0e 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -944,12 +944,11 @@ bits256 LP_swap_spendtxid(char *symbol,char *destaddr,bits256 utxotxid,int32_t v printf("spend of %s/v%d detected\n",bits256_str(str,utxotxid),vout); else if ( (coin= LP_coinfind(symbol)) != 0 && coin->electrum == 0 ) { - if ( (retjson= LP_gettxout(symbol,coinaddr,utxotxid,vout)) != 0 ) + if ( (retjson= LP_gettxout(symbol,coinaddr,utxotxid,vout)) == 0 ) { - free_json(retjson); decode_hex(spendtxid.bytes,32,"deadbeefdeadbeefdeadbeefdeadbeef"); printf("couldnt find spend of %s/v%d, but no gettxout\n",bits256_str(str,utxotxid),vout); - } + } else free_json(retjson); } return(spendtxid); //char str[65]; printf("swap %s spendtxid.(%s)\n",symbol,bits256_str(str,utxotxid));