|
|
@ -217,7 +217,7 @@ void iguana_gotverack(struct iguana_info *coin,struct iguana_peer *addr) |
|
|
|
uint8_t serialized[sizeof(struct iguana_msghdr)]; |
|
|
|
if ( addr != 0 ) |
|
|
|
{ |
|
|
|
//printf("gotverack from %s\n",addr->ipaddr);
|
|
|
|
printf("gotverack from %s\n",addr->ipaddr); |
|
|
|
addr->A.nTime = (uint32_t)time(NULL); |
|
|
|
iguana_queue_send(coin,addr,0,serialized,"getaddr",0,0,0); |
|
|
|
if ( addr->supernet != 0 ) |
|
|
@ -237,7 +237,7 @@ void iguana_gotaddr(struct iguana_info *coin,struct iguana_peer *addr,struct igu |
|
|
|
if ( port != 0 ) |
|
|
|
sprintf(ipport,"%s:%d",ipaddr,port); |
|
|
|
iguana_possible_peer(coin,ipport); |
|
|
|
//printf("gotaddr.(%s:%d)\n",ipaddr,port);
|
|
|
|
printf("gotaddr.(%s:%d) from (%s)\n",ipaddr,port,addr->ipaddr); |
|
|
|
} |
|
|
|
|
|
|
|
void iguana_gotping(struct iguana_info *coin,struct iguana_peer *addr,uint64_t nonce,uint8_t *data) |
|
|
@ -264,7 +264,7 @@ int32_t iguana_send_ping(struct iguana_info *coin,struct iguana_peer *addr) |
|
|
|
addr->pingnonce = ((nonce & 0xffffffff) << 32) | ((uint32_t)addr->ipbits & 0xffffffff); |
|
|
|
addr->pingtime = (uint32_t)time(NULL); |
|
|
|
} |
|
|
|
//printf("pingnonce.%llx\n",(long long)nonce);
|
|
|
|
printf("pingnonce.%llx from (%s)\n",(long long)nonce,addr->ipaddr); |
|
|
|
len = iguana_rwnum(1,&serialized[sizeof(struct iguana_msghdr)],sizeof(uint64_t),&nonce); |
|
|
|
if ( addr->supernet != 0 ) |
|
|
|
iguana_send_supernet(coin,addr,SUPERNET_GETPEERSTR,0); |
|
|
@ -540,7 +540,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc |
|
|
|
strcpy(addr->lastcommand,H->command); |
|
|
|
} |
|
|
|
retval = 0; |
|
|
|
//printf("iguana_msgparser %s parse.(%s)\n",addr->ipaddr,H->command);
|
|
|
|
printf("iguana_msgparser from (%s) parse.(%s) len.%d\n",addr->ipaddr,H->command,recvlen); |
|
|
|
if ( strncmp(H->command,"SuperNET",strlen("SuperNET")) == 0 ) |
|
|
|
{ |
|
|
|
addr->supernet = 1; |
|
|
|