From 355c8e9a03a45b2fff895afca16db5a18ce906f0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 27 Aug 2016 16:10:44 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 4 ++-- basilisk/basilisk_ping.c | 6 +++--- iguana/confs/BTCD_peers.txt | 2 -- iguana/iguana_peers.c | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index cd264c13e..c81d2331c 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -311,7 +311,7 @@ struct basilisk_item *basilisk_issueremote(struct supernet_info *myinfo,struct i { if ( pending->numresults >= pending->numrequired )//|| (retstr= pending->retstr) != 0 ) { - printf("numresults.%d vs numrequired.%d\n",pending->numresults,pending->numrequired); + //printf("numresults.%d vs numrequired.%d\n",pending->numresults,pending->numrequired); break; } usleep(10000); @@ -813,7 +813,7 @@ void basilisks_loop(void *arg) coin->lastunspentsupdate = (uint32_t)time(NULL); } } - //if ( (myinfo->RELAYID >= 0 || time(NULL) < myinfo->DEXactive) ) + if ( myinfo->RELAYID < 0 ) basilisk_requests_poll(myinfo); now = (uint32_t)time(NULL); portable_mutex_lock(&myinfo->messagemutex); diff --git a/basilisk/basilisk_ping.c b/basilisk/basilisk_ping.c index 1621c9ba2..0f35701b4 100755 --- a/basilisk/basilisk_ping.c +++ b/basilisk/basilisk_ping.c @@ -218,9 +218,9 @@ void basilisk_ping_send(struct supernet_info *myinfo,struct iguana_info *btcd) { if ( iguana_queue_send(addr,0,myinfo->pingbuf,"SuperNETPIN",datalen) <= 0 ) printf("error sending %d to (%s)\n",datalen,addr->ipaddr); - else printf("+(%s) ",addr->ipaddr); - } else printf("-(%s) ",ipaddr); + //else printf("+(%s) ",addr->ipaddr); + } //else printf("-(%s) ",ipaddr); } - printf("my RELAYID.%d of %d\n",myinfo->RELAYID,myinfo->numrelays); + //printf("my RELAYID.%d of %d\n",myinfo->RELAYID,myinfo->numrelays); } diff --git a/iguana/confs/BTCD_peers.txt b/iguana/confs/BTCD_peers.txt index a07a82f6a..8d6d57536 100644 --- a/iguana/confs/BTCD_peers.txt +++ b/iguana/confs/BTCD_peers.txt @@ -1,7 +1,5 @@ 89.248.160.237 89.248.160.238 -89.248.160.239 -89.248.160.240 85.25.217.233 65.15.37.140 62.75.145.171 diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 4f9cf45ab..e140f63a0 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -725,7 +725,7 @@ void iguana_startconnection(void *arg) if ( addr->usock < 0 || (coin->peers != 0 && coin->peers->shuttingdown != 0) ) { strcpy(ipaddr,addr->ipaddr); - printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock); + //printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock); iguana_iAkill(coin,addr,1); } else