From ceb2583e1cc179fcf19f083fb6c3a5c906b658ec Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 26 Sep 2017 20:10:21 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 36a1b9fac..70d3f4f97 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -25,12 +25,11 @@ uint64_t LP_txfeecalc(struct iguana_info *coin,uint64_t txfee) { if ( strcmp(coin->symbol,"BTC") == 0 ) { - //if ( coin->rate == 0. ) + if ( coin->rate == 0. || txfee < LP_MIN_TXFEE ) coin->rate = LP_getestimatedrate(coin); if ( txfee == 0 && (txfee= coin->rate * LP_AVETXSIZE) < LP_MIN_TXFEE ) txfee = LP_MIN_TXFEE; - } - else txfee = coin->txfee; + } else txfee = coin->txfee; if ( txfee < LP_MIN_TXFEE ) txfee = LP_MIN_TXFEE; }