|
|
@ -709,7 +709,7 @@ void iguana_startconnection(void *arg) |
|
|
|
iguana_iAkill(coin,addr,1); |
|
|
|
return; |
|
|
|
} |
|
|
|
printf("%s iguana_startconnection.%s:%04x\n",coin->symbol,addr->ipaddr,coin->chain->portp2p); |
|
|
|
//printf("%s iguana_startconnection.%s:%04x\n",coin->symbol,addr->ipaddr,coin->chain->portp2p);
|
|
|
|
if ( strcmp("127.0.0.1",addr->ipaddr) == 0 )//&& (coin->myservices & NODE_NETWORK) != 0 )
|
|
|
|
{ |
|
|
|
iguana_iAkill(coin,addr,0); |
|
|
@ -725,7 +725,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 |
|
|
@ -919,7 +919,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr) |
|
|
|
expand_ipbits(checkaddr,ipbits); |
|
|
|
if ( strcmp(checkaddr,ipaddr) == 0 ) |
|
|
|
{ |
|
|
|
printf("%s valid ipaddr.(%s) MAXPEERS.%d\n",coin->symbol,ipaddr,coin->MAXPEERS); |
|
|
|
//printf("%s valid ipaddr.(%s) MAXPEERS.%d\n",coin->symbol,ipaddr,coin->MAXPEERS);
|
|
|
|
if ( (iA= iguana_iAddrhashfind(coin,ipbits,1)) != 0 ) |
|
|
|
{ |
|
|
|
if ( iA->status != IGUANA_PEER_CONNECTING && iA->status != IGUANA_PEER_READY && iA->status != IGUANA_PEER_ELIGIBLE ) |
|
|
|