diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 93d1f524c..9bf2a0894 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -602,7 +602,7 @@ double LP_getestimatedrate(struct iguana_info *coin) return(0.0001); if ( (strcmp(coin->symbol,"BTC") == 0 || coin->txfee == 0) ) { - if ( coin->rate == 0. || time(NULL) > coin->ratetime ) + if ( coin->rate == 0. || time(NULL) > coin->ratetime+3 ) { sprintf(buf,"[%d]",3); if ( (retstr= LP_apicall(coin,coin->electrum==0?"estimatefee" : "blockchain.estimatefee",buf)) != 0 ) @@ -614,7 +614,7 @@ double LP_getestimatedrate(struct iguana_info *coin) rate = 0.00000020; coin->rate = rate * 1.25; coin->ratetime = (uint32_t)time(NULL); - if ( (rand() % 10) == 0 ) + //if ( (rand() % 10) == 0 ) printf("estimated rate.(%s) %s -> %.8f\n",coin->symbol,retstr,rate); } free(retstr);