Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4687f65496
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_init.c

2
iguana/iguana777.c

@ -207,7 +207,7 @@ uint32_t iguana_updatemetrics(struct iguana_info *coin)
if ( (fp= fopen(tmpfname,"w")) != 0 )
{
for (i=0; i<coin->peers.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) )
{

2
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"));

Loading…
Cancel
Save