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.;