Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
c87d4af863
  1. 3
      iguana/iguana777.c
  2. 2
      iguana/iguana_init.c

3
iguana/iguana777.c

@ -811,7 +811,7 @@ void iguana_coinloop(void *arg)
// iguana_coinflush(coin,1);
}*/
if ( myinfo->RELAYID >= 0 )
continue;
{
if ( coin->bindsock >= 0 )
{
if ( coin->MAXPEERS > 1 && coin->peers->numranked < IGUANA_MAXPEERS/2 && now > coin->lastpossible+2 )
@ -835,6 +835,7 @@ void iguana_coinloop(void *arg)
{
coin->peers->lastmetrics = iguana_updatemetrics(myinfo,coin); // ranks peers
}
}
if ( coin->FULLNODE != 0 || coin->VALIDATENODE != 0 || coin->MAXPEERS == 1 )
{
portable_mutex_lock(&coin->allcoins_mutex);

2
iguana/iguana_init.c

@ -289,7 +289,7 @@ void iguana_parseline(struct supernet_info *myinfo,struct iguana_info *coin,int3
//printf("parse line.(%s) maxpeers.%d\n",line,coin->MAXPEERS);
if ( iter == 0 )
{
if ( m < 32 && (m < coin->MAXPEERS/2 && strcmp("BTCD",coin->symbol) != 0) )//&& m < 77.7 )
if ( m < 32 || (m < coin->MAXPEERS/2 && strcmp("BTCD",coin->symbol) != 0) )//&& m < 77.7 )
{
if ( 0 && m == 0 )
{

Loading…
Cancel
Save