From 5411d3a6eef678db88d786b9c173207bf1e0c423 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Sep 2017 22:07:15 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 188820a79..58d7e49c4 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -281,11 +281,11 @@ cJSON *LP_gettxout(char *symbol,bits256 txid,int32_t vout) if ( (hexobj= bitcoin_json(coin,"blockchain.transaction.get",buf)) != 0 ) { hexstr = jprint(hexobj,1); - if ( (len= is_hexstr(hexstr,0)) > 2 ) + if ( (len= is_hexstr(hexstr+1,0)) > 2 ) { len >>= 1; serialized = malloc(len); - decode_hex(serialized,len,hexstr); + decode_hex(serialized,len,hexstr+1); LP_swap_coinaddr(coin,coinaddr,&value,serialized,len,0); printf("HEX.(%s) %s %.8f\n",hexstr,coinaddr,dstr(value)); if ( (listjson= electrum_address_listunspent(coin->symbol,0,0,coinaddr)) != 0 )