From 6b3b43ca651532a740bb3afbf8408303a8e55250 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Jun 2017 08:34:44 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 2 +- iguana/exchanges/LP_nativeDEX.c | 1 + iguana/exchanges/LP_rpc.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index eb0de5c11..69b7452d5 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -236,7 +236,7 @@ cJSON *LP_bestprice(struct LP_utxoinfo *utxo,char *base) } if ( (prices[i]= price) != 0. && (bestprice == 0. || price < bestprice) ) bestprice = price; - //printf("i.%d price %.8f bestprice %.8f: (%s)\n",i,price,bestprice,jprint(item,0)); + printf("i.%d price %.8f bestprice %.8f: (%s)\n",i,price,bestprice,jprint(item,0)); } if ( bestprice != 0. ) { diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 733661f3e..44c25270b 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -100,6 +100,7 @@ struct LP_cacheinfo *LP_cachefind(char *base,char *rel,bits256 txid,int32_t vout { printf("expire price %.8f\n",ptr->price); ptr->price = 0.; + ptr->timestamp = 0; memset(&ptr->Q,0,sizeof(ptr->Q)); } return(ptr); diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index f912440aa..b30a303a4 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -155,7 +155,7 @@ double LP_getestimatedrate(char *symbol) if ( retstr[0] != '-' ) { rate = atof(retstr) / 1024.; - printf("estimated rate %s -> %.8f\n",retstr,rate); + printf("estimated rate.%s %s -> %.8f\n",coin->symbol,retstr,rate); } free(retstr); }