jl777 7 years ago
parent
commit
908c3918d9
  1. 1
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_rpc.c

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

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

Loading…
Cancel
Save