Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
7151be2608
  1. 2
      iguana/iguana777.c
  2. 6
      iguana/iguana_msg.c
  3. 4
      iguana/iguana_peers.c

2
iguana/iguana777.c

@ -429,7 +429,7 @@ void iguana_coinloop(void *arg)
}
}
if ( flag == 0 )
usleep((coin->polltimeout+1) * 10);
usleep((coin->polltimeout+1) * 1000);
}
}

6
iguana/iguana_msg.c

@ -168,7 +168,11 @@ void iguana_gotversion(struct iguana_info *coin,struct iguana_peer *addr,struct
}
if ( (vers->nServices & (1<<7)) == (1<<7) )
addr->supernet = 1;
else printf("nServices.%lld nonce.%llu non-relay node.(%s) supernet.%d\n",(long long)vers->nServices,(long long)vers->nonce,addr->ipaddr,addr->supernet);
else
{
printf("nServices.%lld nonce.%llu non-relay node.(%s) supernet.%d\n",(long long)vers->nServices,(long long)vers->nonce,addr->ipaddr,addr->supernet);
addr->dead = (uint32_t)time(NULL);
}
if ( vers->nStartingHeight > coin->longestchain )
coin->longestchain = vers->nStartingHeight;
iguana_queue_send(coin,addr,0,serialized,"getaddr",0,0,0);

4
iguana/iguana_peers.c

@ -1034,8 +1034,8 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
usleep(100000);
}
else if ( addr->rank != 1 )
usleep(coin->polltimeout*10 + 1*(rand() % (coin->polltimeout*10)));
else usleep(10);
usleep(coin->polltimeout*3000 + 1*(rand() % (coin->polltimeout*3000)));
else usleep(1000);
} else run >>= 2;
}
if ( flag != 0 )

Loading…
Cancel
Save