jl777 7 years ago
parent
commit
4c13862a4b
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 1
      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 ) if ( LP_mainloop_iter(ctx,myipaddr,mypeer,pubsock,pushaddr,myport) != 0 )
nonz++; nonz++;
if ( nonz == 0 ) if ( nonz == 0 )
usleep(100000); usleep(500000);
else usleep(10000); else usleep(50000);
} }
} }

1
iguana/exchanges/LP_rpc.c

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

Loading…
Cancel
Save