Browse Source

Test

patch-3
jl777 7 years ago
parent
commit
adb6365cac
  1. 6
      iguana/exchanges/LP_rpc.c

6
iguana/exchanges/LP_rpc.c

@ -618,7 +618,7 @@ cJSON *LP_importprivkey(char *symbol,char *wifstr,char *label,int32_t flag)
double _LP_getestimatedrate(struct iguana_info *coin) double _LP_getestimatedrate(struct iguana_info *coin)
{ {
char buf[512],*retstr=0; int32_t numblocks,err=0; cJSON *errjson,*retjson; double rate = 0.00000010; char buf[512],*retstr=0; int32_t numblocks,err=0; cJSON *errjson,*retjson; double rate = 0.00000005;
if ( coin->rate < 0. || time(NULL) > coin->ratetime+30 ) if ( coin->rate < 0. || time(NULL) > coin->ratetime+30 )
{ {
if ( coin->estimatefeestr[0] == 0 ) if ( coin->estimatefeestr[0] == 0 )
@ -659,9 +659,9 @@ again:
rate = atof(retstr) / 1024.; rate = atof(retstr) / 1024.;
if ( rate != 0. ) if ( rate != 0. )
{ {
if ( rate < 0.00000010 )
rate = 0.00000010;
rate *= 1.5; rate *= 1.5;
if ( rate < 0.00000005 )
rate = 0.00000005;
if ( coin->electrum != 0 ) if ( coin->electrum != 0 )
rate *= 1.5; rate *= 1.5;
if ( fabs(rate - coin->rate) > SMALLVAL ) if ( fabs(rate - coin->rate) > SMALLVAL )

Loading…
Cancel
Save