From 6fdbe4ceb9d2e1a2dc596b15ccd24cb7fb7828d3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 20 Jun 2017 12:52:14 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 723d5c96b..4ef2345be 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -465,12 +465,13 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit } while ( 1 ) { - if ( 0 && (rand() % 100) == 0 ) + if ( LP_canbind == 0 ) printf("mainloop\n"); if ( LP_mainloop_iter(myipaddr,mypeer,pubsock,pushaddr,mypullport,pullsock,myport,passphrase,profitmargin) == 0 ) usleep(100000); if ( LP_canbind == 0 ) { + printf("check deadman %u vs %u\n",LP_deadman_switch,(uint32_t)time(NULL)); if ( LP_deadman_switch < time(NULL)-PSOCK_KEEPALIVE ) { printf("DEAD man's switch activated, register forwarding again\n");