From de314d27802a26f6d822d6f352ea76bcb550ff29 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Mar 2018 19:32:07 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 8 +++++--- iguana/exchanges/LP_rpc.c | 2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 6447c17d5..aabafac89 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -71,12 +71,14 @@ uint64_t LP_txfeecalc(struct iguana_info *coin,uint64_t txfee,int32_t txlen) if ( txlen == 0 ) txlen = LP_AVETXSIZE; coin->rate = LP_getestimatedrate(coin); - if ( (txfee= SATOSHIDEN * coin->rate * txlen) <= 10000 ) + if ( coin->electrum == 0 ) + coin->rate *= 1.25; + if ( (txfee= SATOSHIDEN * coin->rate * txlen) <= 20000 ) { //coin->rate = -1.; coin->rate = _LP_getestimatedrate(coin); - if ( (txfee= SATOSHIDEN * coin->rate * txlen) <= 10000 ) - txfee = 10000; + if ( (txfee= SATOSHIDEN * coin->rate * txlen) <= 20000 ) + txfee = 20000; } } else txfee = coin->txfee; if ( txfee < LP_MIN_TXFEE ) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 202196a46..9bde5cd29 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -689,8 +689,6 @@ again: //rate *= 1.25; if ( rate < 0.00000005 ) rate = 0.00000005; - if ( coin->electrum == 0 ) - rate *= 1.25; if ( fabs(rate - coin->rate) > SMALLVAL ) printf("%u t%u estimated rate.(%s) (%s) -> %.8f %.8f\n",(uint32_t)time(NULL),coin->ratetime,coin->symbol,retstr,rate,coin->rate); coin->rate = rate;