From cd0dddfdfc48aefc76a9fd087845640632e05156 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 20 Sep 2017 07:24:33 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index aadc15035..9e900a3c6 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -276,9 +276,7 @@ cJSON *LP_gettx(char *symbol,bits256 txid) else { sprintf(buf,"[\"%s\"]",bits256_str(str,txid)); - if ( (retjson= bitcoin_json(coin,"blockchain.transaction.get",buf)) != 0 || - (retjson= bitcoin_json(coin,"blockchain.transaction.get",buf)) != 0 || - (retjson= bitcoin_json(coin,"blockchain.transaction.get",buf)) != 0 ) + if ( (retjson= bitcoin_json(coin,"blockchain.transaction.get",buf)) != 0 ) { hexstr = jprint(retjson,1); if ( strlen(hexstr) > 10000 ) @@ -308,7 +306,7 @@ cJSON *LP_gettx(char *symbol,bits256 txid) } else printf("non-hex tx.(%s)\n",hexstr); free(hexstr); return(cJSON_Parse("{\"error\":\"non hex transaction\"}")); - } else printf("failed blockcjhain.transaction.get\n"); + } else printf("failed blockchain.transaction.get\n"); return(cJSON_Parse("{\"error\":\"no transaction bytes\"}")); } }