|
|
@ -386,7 +386,7 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s |
|
|
|
} |
|
|
|
} |
|
|
|
addr->totalsent += len; |
|
|
|
//printf(" %s sent.%d bytes to %s\n",(char *)&serialized[4],len,addr->ipaddr);// getchar();
|
|
|
|
printf(" %s sent.%d bytes to %s\n",(char *)&serialized[4],len,addr->ipaddr);// getchar();
|
|
|
|
return(len); |
|
|
|
} |
|
|
|
|
|
|
@ -488,7 +488,7 @@ void _iguana_processmsg(struct iguana_info *coin,int32_t usock,struct iguana_pee |
|
|
|
memset(&H,0,sizeof(H)); |
|
|
|
if ( (recvlen= (int32_t)iguana_recv(addr->ipaddr,usock,(uint8_t *)&H,sizeof(H))) == sizeof(H) ) |
|
|
|
{ |
|
|
|
//printf("%p got.(%s) recvlen.%d from %s | usock.%d ready.%u dead.%u\n",addr,H.command,recvlen,addr->ipaddr,addr->usock,addr->ready,addr->dead);
|
|
|
|
printf("%p got.(%s) recvlen.%d from %s | usock.%d ready.%u dead.%u\n",addr,H.command,recvlen,addr->ipaddr,addr->usock,addr->ready,addr->dead); |
|
|
|
if ( coin->peers.shuttingdown != 0 || addr->dead != 0 ) |
|
|
|
return; |
|
|
|
if ( (len= iguana_validatehdr(&H)) >= 0 ) |
|
|
|