From fde15b1521f4f66c4e58053d6ff68793d73d0d80 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 26 Sep 2017 20:26:38 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 6ecf8a7c6..9458d1eff 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -25,9 +25,13 @@ uint64_t LP_txfeecalc(struct iguana_info *coin,uint64_t txfee) { if ( strcmp(coin->symbol,"BTC") == 0 ) { - coin->rate = _LP_getestimatedrate(coin); + coin->rate = LP_getestimatedrate(coin); if ( (txfee= coin->rate * LP_AVETXSIZE) < LP_MIN_TXFEE ) - txfee = LP_MIN_TXFEE; + { + coin->rate = _LP_getestimatedrate(coin); + if ( (txfee= coin->rate * LP_AVETXSIZE) < LP_MIN_TXFEE ) + txfee = LP_MIN_TXFEE; + } } else txfee = coin->txfee; if ( txfee < LP_MIN_TXFEE ) txfee = LP_MIN_TXFEE;