jl777 7 years ago
parent
commit
4c13862a4b
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 3
      iguana/exchanges/LP_rpc.c

4
iguana/exchanges/LP_nativeDEX.c

@ -700,8 +700,8 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
if ( LP_mainloop_iter(ctx,myipaddr,mypeer,pubsock,pushaddr,myport) != 0 )
nonz++;
if ( nonz == 0 )
usleep(100000);
else usleep(10000);
usleep(500000);
else usleep(50000);
}
}

3
iguana/exchanges/LP_rpc.c

@ -617,7 +617,8 @@ double _LP_getestimatedrate(struct iguana_info *coin)
rate *= 1.25;
if ( coin->electrum != 0 )
rate *= 1.25;
printf("t%u estimated rate.(%s) (%s) -> %.8f %.8f\n",coin->ratetime,coin->symbol,retstr,rate,coin->rate);
if ( fabs(rate - coin->rate) > SMALLVAL )
printf("t%u estimated rate.(%s) (%s) -> %.8f %.8f\n",coin->ratetime,coin->symbol,retstr,rate,coin->rate);
coin->rate = rate;
coin->ratetime = (uint32_t)time(NULL);
}

Loading…
Cancel
Save