|
|
@ -573,7 +573,9 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc |
|
|
|
addr->msgcounts.getblocks++; |
|
|
|
len = iguana_rwnum(0,&data[sizeof(struct iguana_msghdr)],sizeof(uint32_t),&tmp); |
|
|
|
len += iguana_rwvarint32(0,&data[sizeof(struct iguana_msghdr) + len],(uint32_t *)&n); |
|
|
|
printf("version.%d num blocks.%d\n",tmp,n); |
|
|
|
for (i=0; i<10; i++) |
|
|
|
printf("%02x ",data[i]); |
|
|
|
printf("version.%d num blocks.%d recvlen.%d\n",tmp,n,recvlen); |
|
|
|
for (i=0; i<n; i++) |
|
|
|
{ |
|
|
|
len += iguana_rwbignum(0,&data[sizeof(struct iguana_msghdr) + len],sizeof(bits256),hash2.bytes); |
|
|
|