|
@ -531,7 +531,7 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
addr->totalsent += len; |
|
|
addr->totalsent += len; |
|
|
//if ( 0 && addr->basilisk != 0 )
|
|
|
if ( 0 && addr->basilisk != 0 ) |
|
|
printf("verack.%d (%s) sent.%d bytes to %s\n",addr->msgcounts.verack,cmdstr,len,addr->ipaddr); |
|
|
printf("verack.%d (%s) sent.%d bytes to %s\n",addr->msgcounts.verack,cmdstr,len,addr->ipaddr); |
|
|
return(len); |
|
|
return(len); |
|
|
} |
|
|
} |
|
@ -587,7 +587,7 @@ int32_t iguana_recv(char *ipaddr,int32_t usock,uint8_t *recvbuf,int32_t len) |
|
|
remains -= recvlen; |
|
|
remains -= recvlen; |
|
|
//int32_t i; for (i=0; i<recvlen; i++)
|
|
|
//int32_t i; for (i=0; i<recvlen; i++)
|
|
|
// printf("%02x",recvbuf[i]);
|
|
|
// printf("%02x",recvbuf[i]);
|
|
|
printf("got %d remains.%d of total.%d from (%s)\n",recvlen,remains,len,ipaddr); |
|
|
//printf("got %d remains.%d of total.%d from (%s)\n",recvlen,remains,len,ipaddr);
|
|
|
recvbuf = &recvbuf[recvlen]; |
|
|
recvbuf = &recvbuf[recvlen]; |
|
|
} else usleep(10000); |
|
|
} else usleep(10000); |
|
|
} |
|
|
} |
|
|