From 3cd37204f8b641880832aa68da3dadc12c67cfeb Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 29 May 2017 19:41:55 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 178c3ccf5..3e523034c 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -152,8 +152,11 @@ uint64_t LP_getestimatedrate(char *symbol) sprintf(buf,"[%d]",13); if ( (retstr= bitcoind_passthru(symbol,coin->serverport,coin->userpass,"estimatefee",buf)) != 0 ) { - rate = atof(retstr); - printf("estimated rate %s -> %llu\n",retstr,(long long)rate); + if ( retstr[0] != '-' ) + { + rate = atof(retstr); + printf("estimated rate %s -> %llu\n",retstr,(long long)rate); + } free(retstr); } } @@ -164,7 +167,7 @@ uint64_t LP_txfee(char *symbol) { uint64_t txfee = 0; if ( strcmp(symbol,"BTC") != 0 ) - txfee = 50000; + txfee = 10000; return(txfee); }