Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0f4b81b7dc
  1. 4
      iguana/iguana_peers.c

4
iguana/iguana_peers.c

@ -998,10 +998,10 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
}
if ( flag != 0 )
run = 0;
else if ( time(NULL) > lastping+1 )
else if ( addr->supernet != 0 && time(NULL) > lastping+10 )
{
iguana_send_supernet(coin,addr,"{\"agent\":\"SuperNET\",\"method\":\"getpeers\"}",0);
lastping = time(NULL);
lastping = (uint32_t)time(NULL);
}
if ( coin->isRT != 0 && addr->rank > coin->MAXPEERS && (rand() % 100) == 0 )
{

Loading…
Cancel
Save