From 24f201bb367c9601f009b8ddb82028afe13f5f76 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Jun 2017 15:06:37 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index ca7eccd2c..c7f3f1444 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -101,7 +101,8 @@ void LP_process_message(char *typestr,char *myipaddr,int32_t pubsock,double prof decode_hex((void *)jsonstr,datalen,(char *)ptr); jsonstr[datalen] = 0; } else jsonstr = (char *)ptr; - //printf("%s %d, datalen.%d (%s)\n",typestr,recvlen,datalen,jsonstr); + if ( IAMLP == 0 ) + printf("%s %d, datalen.%d (%s)\n",typestr,recvlen,datalen,jsonstr); if ( (argjson= cJSON_Parse(jsonstr)) != 0 ) { len = (int32_t)strlen(jsonstr) + 1; @@ -138,8 +139,6 @@ int32_t LP_pullsock_check(char *myipaddr,int32_t pubsock,int32_t pullsock,double while ( pullsock >= 0 && (recvlen= nn_recv(pullsock,&ptr,NN_MSG,NN_DONTWAIT)) >= 0 ) { nonz++; - if ( IAMLP == 0 ) - printf("pulled.%d (%s)\n",recvlen,(char *)ptr); LP_process_message("PULL",myipaddr,pubsock,profitmargin,ptr,recvlen); } return(nonz);