diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 5d627dd71..3b1cbccdd 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -154,11 +154,11 @@ int32_t iguana_inv2poll(struct supernet_info *myinfo,struct iguana_info *coin) for (i=n=0; iMAXPEERS; 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++; } diff --git a/iguana/iguana_accept.c b/iguana/iguana_accept.c index 1bd2f91d9..94b8ea5ab 100755 --- a/iguana/iguana_accept.c +++ b/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);