From 4cc9ef1030ee4b53ad5d5e4eb5efd1d3ebe720dd Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Sep 2017 21:39:12 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 16a30ccac..caf24a3a2 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -515,7 +515,7 @@ int32_t LP_importaddress(char *symbol,char *address) double LP_getestimatedrate(struct iguana_info *coin) { - char buf[512],*retstr; double rate = 20; + char buf[512],*retstr; double rate = 0.00000020; if ( coin == 0 ) return(0.0001); if ( (strcmp(coin->symbol,"BTC") == 0 || coin->txfee == 0) ) @@ -528,8 +528,8 @@ double LP_getestimatedrate(struct iguana_info *coin) if ( retstr[0] != '-' ) { rate = atof(retstr) / 1024.; - if ( rate < 20 ) - rate = 20.; + if ( rate < 0.00000020 ) + rate = 0.00000020; coin->rate = rate; coin->ratetime = (uint32_t)time(NULL); printf("estimated rate.(%s) %s -> %.8f\n",coin->symbol,retstr,rate);