Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
7b5d307b8f
  1. 2
      iguana/iguana_accept.c
  2. 4
      iguana/iguana_msg.c

2
iguana/iguana_accept.c

@ -232,7 +232,7 @@ int32_t iguana_peeraddrrequest(struct iguana_info *coin,struct iguana_peer *addr
}
}
}
sendlen = iguana_rwvarint(1,&space[sizeof(H)],&x);
iguana_rwvarint(1,&space[sizeof(H)],&x);
printf("addrrequest: sendlen.%d x.%d\n",sendlen,(int32_t)x);
return(sendlen);
}

4
iguana/iguana_msg.c

@ -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);

Loading…
Cancel
Save