Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
14b87e00fc
  1. 4
      iguana/iguana_peers.c
  2. 2
      iguana/iguana_ramchain.c

4
iguana/iguana_peers.c

@ -731,7 +731,7 @@ void iguana_startconnection(void *arg)
printf("avoid self-loopback\n");
return;
}
printf(">>>>>>>> %s startconnection.(%s) pending.%u usock.%d addrind.%d\n",coin->symbol,addr->ipaddr,addr->pending,addr->usock,addr->addrind);
//printf(">>>>>>>> %s startconnection.(%s) pending.%u usock.%d addrind.%d\n",coin->symbol,addr->ipaddr,addr->pending,addr->usock,addr->addrind);
addr->pending = (uint32_t)time(NULL);
if ( (port= (uint16_t)(addr->ipbits >> 32)) == 0 )
port = coin->chain->portp2p;
@ -740,7 +740,7 @@ void iguana_startconnection(void *arg)
if ( addr->usock < 0 || (coin->peers != 0 && coin->peers->shuttingdown != 0) )
{
strcpy(ipaddr,addr->ipaddr);
printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock);
//printf("%s refused PEER KILLED. slot.%d for %s:%d usock.%d\n",coin->symbol,addr->addrind,ipaddr,coin->chain->portp2p,addr->usock);
iguana_iAkill(coin,addr,1);
}
else

2
iguana/iguana_ramchain.c

@ -1083,7 +1083,7 @@ long iguana_ramchain_save(struct iguana_info *coin,RAMCHAIN_FUNC,uint32_t ipbits
*rdata = tmp;
fflush(fp);
fclose(fp);
sleep(3);
//sleep(3);
}
#ifdef __PNACL__
//portable_mutex_unlock(&mutex);

Loading…
Cancel
Save