From 594f75f54ac0fcc8df282bb09c3d75d4e0b430dc Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 5 Jun 2017 14:40:17 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 2 +- iguana/exchanges/LP_quotes.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 204afe6bf..7c802fff3 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -219,7 +219,7 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port { HASH_ITER(hh,LP_utxoinfos,utxo,tmp) { - if ( LP_ismine(utxo) != 0 && strcmp(utxo->coin,base) == 0 ) + if ( LP_ismine(utxo) != 0 && (strcmp(utxo->coin,base) == 0 || strcmp(utxo->coin,rel) == 0) ) LP_priceping(LP_mypubsock,utxo,rel,LP_profitratio - 1.); } } diff --git a/iguana/exchanges/LP_quotes.c b/iguana/exchanges/LP_quotes.c index 7a749a60c..5a0cf09f8 100644 --- a/iguana/exchanges/LP_quotes.c +++ b/iguana/exchanges/LP_quotes.c @@ -347,6 +347,7 @@ int32_t LP_priceping(int32_t pubsock,struct LP_utxoinfo *utxo,char *rel,double p retjson = LP_quotejson(&Q); jaddstr(retjson,"method","quote"); retstr = jprint(retjson,1); + printf("PING.(%s)\n",retstr); LP_send(pubsock,retstr,1); utxo->published = now; return(0);