From 1cf217d6ded04417aa14d94a8f6a2365675c7285 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Jun 2017 18:50:33 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index bb0b2bf2f..058207246 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -164,7 +164,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i LP_privkey_updates(mypeer,pubsock,passphrase,amclient); printf("done privkey updates\n"); } - if ( (counter % 500) == 0 ) + if ( 0 && (counter % 500) == 0 ) { char str[65]; printf("start utxos updates\n"); @@ -199,6 +199,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i printf("start peers updates\n"); HASH_ITER(hh,LP_peerinfos,peer,tmp) { + break; printf("updatepeer.%s lag.%d\n",peer->ipaddr,now-peer->lastpeers); if ( now > peer->lastpeers+60 && peer->numpeers > 0 && (peer->numpeers != mypeer->numpeers || (rand() % 10000) == 0) ) { @@ -237,7 +238,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i } } printf("done peers updates\n"); - while ( pullsock >= 0 && (recvsize= nn_recv(pullsock,&ptr,NN_MSG,0)) >= 0 ) + while ( 0 && pullsock >= 0 && (recvsize= nn_recv(pullsock,&ptr,NN_MSG,0)) >= 0 ) { nonz++; if ( (argjson= cJSON_Parse((char *)ptr)) != 0 )