From ed7fe542ce498f36f3f6e98aa65d96a4620b8221 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Jun 2017 13:59:17 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 +++- iguana/exchanges/LP_forwarding.c | 2 +- iguana/exchanges/LP_nativeDEX.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 57454830f..92deb8e0f 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -50,7 +50,9 @@ char *stats_JSON(char *myipaddr,int32_t pubsock,double profitmargin,cJSON *argjs printf("stats_JSON no method: (%s) (%s:%u)\n",jprint(argjson,0),ipaddr,argport); return(0); } - if ( strcmp(method,"help") == 0 ) + if ( strcmp(method,"hello") == 0 ) + return(0); + else if ( strcmp(method,"help") == 0 ) return(clonestr("{\"result\":\" \ available localhost RPC commands:\n \ setprice(base, rel, price)\n\ diff --git a/iguana/exchanges/LP_forwarding.c b/iguana/exchanges/LP_forwarding.c index 7962e0273..2c6e573e8 100644 --- a/iguana/exchanges/LP_forwarding.c +++ b/iguana/exchanges/LP_forwarding.c @@ -65,7 +65,7 @@ int32_t LP_hello(struct LP_forwardinfo *ptr) return(i); } } - printf("%d iterations on nn_poll and %s pushsock still not ready\n",i,ptr->pushaddr); + //printf("%d iterations on nn_poll and %s pushsock still not ready\n",i,ptr->pushaddr); return(-1); } return(0); diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 59929ce45..c40d28861 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -281,7 +281,7 @@ int32_t LP_mainloop_iter(char *myipaddr,struct LP_peerinfo *mypeer,int32_t pubso } } nonz += LP_pullsock_check(myipaddr,pubsock,pullsock,profitmargin); - if ( (counter % 60) == 42 ) + if ( (counter % 600) == 42 ) LP_hellos(); counter++; return(nonz);