From e01a090b6e13b5b4d2342639ab02a18a4ee83d10 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 26 Sep 2017 20:59:34 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 2 +- iguana/exchanges/LP_rpc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index a40924bd1..cbbd17e38 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -25,10 +25,10 @@ uint64_t LP_txfeecalc(struct iguana_info *coin,uint64_t txfee) { if ( strcmp(coin->symbol,"BTC") == 0 ) { - coin->rate = 0.; coin->rate = LP_getestimatedrate(coin); if ( (txfee= coin->rate * LP_AVETXSIZE) < LP_MIN_TXFEE ) { + coin->rate = 0.; coin->rate = _LP_getestimatedrate(coin); if ( (txfee= coin->rate * LP_AVETXSIZE) < LP_MIN_TXFEE ) txfee = LP_MIN_TXFEE; diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index e614cbc49..cd4fc2366 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -598,7 +598,7 @@ int32_t LP_importaddress(char *symbol,char *address) double _LP_getestimatedrate(struct iguana_info *coin) { char buf[512],*retstr; cJSON *errjson; double rate = 0.00000020; - if ( coin->rate == 0. || time(NULL) > time(NULL) > coin->ratetime+30 ) + if ( coin->rate == 0. || time(NULL) > coin->ratetime+30 ) { sprintf(buf,"[%d]",strcmp(coin->symbol,"BTC") == 0 ? 6 : 2); if ( (retstr= LP_apicall(coin,coin->electrum==0?"estimatefee" : "blockchain.estimatefee",buf)) != 0 )