From de81acf7057b517d75bee5e8946178d244ab9c16 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 09:50:28 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_peers.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 394b78ef3..5cd03dc0c 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -541,7 +541,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) difft.millis = ((double)tmp / 1000000.); sprintf(str,"N[%d] d.%d p.%d g.%d A.%d h.%d r.%d c.%d:%d s.%d E.%d:%d M.%d L.%d est.%d %s %d:%02d:%02d %03.3f peers.%d/%d",coin->bundlescount,numdone,coin->numpendings,numbundles,numactive,numhashes,coin->blocksrecv,coin->numcached,coin->cachefreed,totalsaved,coin->numemitted,coin->numreqsent,coin->blocks.hwmchain.height,coin->longestchain,coin->MAXBUNDLES,mbstr(str2,estsize),(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,difft.millis,p,coin->MAXPEERS); //sprintf(str+strlen(str),"%s.%-2d %s time %.2f files.%d Q.%d %d\n",coin->symbol,flag,str,(double)(time(NULL)-coin->starttime)/60.,coin->peers.numfiles,queue_size(&coin->priorityQ),queue_size(&coin->blocksQ)); - //if ( (rand() % 100) == 0 ) + if ( (rand() % 100) == 0 ) printf("%s\n",str); strcpy(coin->statusstr,str); coin->activebundles = numactive; diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index bc3d021df..8a27db3b0 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -677,7 +677,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr) return((uint32_t)time(NULL)); } #endif - printf("check possible peer.(%s)\n",ipaddr); + //printf("check possible peer.(%s)\n",ipaddr); for (i=0; iMAXPEERS; i++) if ( strcmp(ipaddr,coin->peers.active[i].ipaddr) == 0 ) { @@ -692,7 +692,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr) expand_ipbits(checkaddr,ipbits); if ( strcmp(checkaddr,ipaddr) == 0 ) { - printf("valid ipaddr.(%s) MAXPEERS.%d\n",ipaddr,coin->MAXPEERS); + //printf("valid ipaddr.(%s) MAXPEERS.%d\n",ipaddr,coin->MAXPEERS); if ( (iA= iguana_iAddrhashfind(coin,ipbits,1)) != 0 ) { if ( iA->status != IGUANA_PEER_CONNECTING && iA->status != IGUANA_PEER_READY && iA->status != IGUANA_PEER_ELIGIBLE )