From 04a4076c984af87ead1f22a1d8d82b855ad795ee Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 23 May 2017 18:13:50 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_unspents.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/iguana/exchanges/LP_unspents.c b/iguana/exchanges/LP_unspents.c index dde97d47f..9fad65484 100644 --- a/iguana/exchanges/LP_unspents.c +++ b/iguana/exchanges/LP_unspents.c @@ -112,13 +112,9 @@ char *LP_addpeer(char *ipaddr,uint16_t port,uint32_t gotintro,uint32_t sentintro if ( j != lastj ) { peer = &LP_peerinfos[j]; - if ( peer->sentintro == 0 ) - { - //queue_LP_notify(peer,ipaddr,port); - printf("queue notify (%s) from (%s)\n",peer->ipaddr,ipaddr); - peer->notify_port = port; - strcpy(peer->notify_ipaddr,ipaddr); - } + printf("queue notify (%s) from (%s)\n",peer->ipaddr,ipaddr); + peer->notify_port = port; + strcpy(peer->notify_ipaddr,ipaddr); lastj = j; } } @@ -247,9 +243,11 @@ void LPinit(uint16_t port,double profitmargin) free(retstr); for (i=0; i 20 ) + continue; if ( (retstr= issue_LP_intro(default_LPnodes[i],port,ipaddr,port,0.01)) != 0 ) { - printf("(%s) -> %s\n",default_LPnodes[i],retstr); + //printf("(%s) -> %s\n",default_LPnodes[i],retstr); free(retstr); } }