From 908c3918d9e371e87bffaf34c17edacf5b71d9e0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 26 Sep 2017 18:57:17 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 1 - iguana/exchanges/LP_rpc.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 194f0f9b7..b5b0008d4 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -363,7 +363,6 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int continue; if ( coin->updaterate != 0 || (coin->electrum == 0 && coin->rate == 0.) ) { - printf("issue LP_getestimatedrate(%s)\n",coin->symbol); LP_getestimatedrate(coin); if ( coin->rate != 0 ) coin->updaterate = 0; diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 33b7ea020..b5f510c92 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -607,7 +607,7 @@ double LP_getestimatedrate(struct iguana_info *coin) sprintf(buf,"[%d]",6); if ( (retstr= LP_apicall(coin,coin->electrum==0?"estimatefee" : "blockchain.estimatefee",buf)) != 0 ) { - if ( (errjson= cJSON_Parse(retstr)) != 0 ) + if ( retstr[0] == '{' && (errjson= cJSON_Parse(retstr)) != 0 ) { if ( jobj(errjson,"error") != 0 ) rate = 0.;