jl777 7 years ago
parent
commit
cd0dddfdfc
  1. 6
      iguana/exchanges/LP_rpc.c

6
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\"}"));
}
}

Loading…
Cancel
Save