From 4687f65496064b497b2d322c3ac6c125b6b9187d Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 10:33:33 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 1c7f7096b..198a1693e 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -207,7 +207,7 @@ uint32_t iguana_updatemetrics(struct iguana_info *coin) if ( (fp= fopen(tmpfname,"w")) != 0 ) { for (i=0; ipeers.numranked; i++) - if ( (addr= coin->peers.ranked[i]) != 0 ) + if ( (addr= coin->peers.ranked[i]) != 0 && strcmp(addr->ipaddr,"127.0.0.1") != 0 ) fprintf(fp,"%s\n",addr->ipaddr); if ( ftell(fp) > OS_filesize(fname) ) { diff --git a/iguana/iguana_init.c b/iguana/iguana_init.c index b3c0209ca..856067a1d 100755 --- a/iguana/iguana_init.c +++ b/iguana/iguana_init.c @@ -238,7 +238,7 @@ void iguana_parseline(struct iguana_info *coin,int32_t iter,FILE *fp) { if ( m < (2*coin->MAXPEERS)/3 )//&& m < 77.7 ) { - if ( m == 0 ) + if ( 0 && m == 0 ) { addr = &coin->peers.active[m++]; iguana_initpeer(coin,addr,(uint32_t)calc_ipbits("127.0.0.1"));