Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c10599155b
  1. 2
      iguana/iguana777.c
  2. 1
      iguana/iguana_accept.c

2
iguana/iguana777.c

@ -154,11 +154,11 @@ int32_t iguana_inv2poll(struct supernet_info *myinfo,struct iguana_info *coin)
for (i=n=0; i<coin->MAXPEERS; i++)
{
addr = &coin->peers.active[i];
printf("iguana_inv2poll (%s) usock.%d dead.%u ready.%u ipbits.%u supernet.%d\n",addr->ipaddr,addr->usock,addr->dead,addr->ready,(uint32_t)addr->ipbits,addr->supernet);
if ( addr->usock < 0 || addr->dead != 0 || addr->ready == 0 || addr->ipbits == 0 )
continue;
if ( addr->supernet != 0 )
{
printf("iguana_inv2poll (%s) usock.%d dead.%u ready.%u ipbits.%u supernet.%d\n",addr->ipaddr,addr->usock,addr->dead,addr->ready,(uint32_t)addr->ipbits,addr->supernet);
instantdex_inv2data(myinfo,coin,addr,exchange);
n++;
}

1
iguana/iguana_accept.c

@ -103,6 +103,7 @@ void iguana_acceptloop(void *args)
printf("found existing peer.(%s) in slot[%d]\n",ipaddr,i);
close(coin->peers.active[i].usock);
coin->peers.active[i].usock = sock;
coin->peers.active[i].ready = (uint32_t)time(NULL);
flag = 1;
//iguana_iAkill(coin,&coin->peers.active[i],0);
//sleep(1);

Loading…
Cancel
Save