From 6675873d74ad6384f15db4e071308d12bd5c6cf5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 5 Jun 2017 14:25:16 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_quotes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_quotes.c b/iguana/exchanges/LP_quotes.c index 2b0a6e732..7a749a60c 100644 --- a/iguana/exchanges/LP_quotes.c +++ b/iguana/exchanges/LP_quotes.c @@ -181,6 +181,7 @@ char *LP_quotereceived(cJSON *argjson) if ( (ptr= LP_cacheadd(Q.srccoin,Q.destcoin,Q.txid,Q.vout,price,&Q)) != 0 ) { ptr->Q = Q; + char str[65]; printf("received.(%s) quote %.8f\n",bits256_str(str,Q.txid),price); return(clonestr("{\"result\":\"updated\"}")); } else return(clonestr("{\"error\":\"nullptr\"}")); } @@ -249,7 +250,7 @@ cJSON *LP_autotrade(struct LP_utxoinfo *myutxo,char *base,double maxprice) maxprice = LP_price(base,myutxo->coin) / 0.975; if ( (array= LP_tradecandidates(myutxo,base)) != 0 ) { - printf("candidates.(%s)\nn.%d",jprint(array,0),cJSON_GetArraySize(array)); + printf("candidates.(%s)\nn.%d\n",jprint(array,0),cJSON_GetArraySize(array)); if ( (n= cJSON_GetArraySize(array)) > 0 ) { memset(prices,0,sizeof(prices));