From d6ef95125934335a36055d2c1b4c24c479d3432f Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 25 Feb 2018 16:17:09 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 2 +- iguana/exchanges/LP_rpc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 56fc7617b..22cdb0b97 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -73,7 +73,7 @@ uint64_t LP_txfeecalc(struct iguana_info *coin,uint64_t txfee,int32_t txlen) coin->rate = LP_getestimatedrate(coin); if ( (txfee= SATOSHIDEN * coin->rate * txlen) <= 10000 ) { - coin->rate = -1.; + //coin->rate = -1.; coin->rate = _LP_getestimatedrate(coin); if ( (txfee= SATOSHIDEN * coin->rate * txlen) <= 10000 ) txfee = 10000; diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 7e7fca334..41f568652 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -668,6 +668,7 @@ again: 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; coin->ratetime = (uint32_t)time(NULL); + printf("set rate %.8f t%u\n",rate,coin->ratetime); } free(retstr); if ( err == 1 && coin->electrum == 0 && strcmp("BTC",coin->symbol) == 0 )