From 7b5d307b8fd966d310aff084ddd6908ee226f430 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 21 Apr 2016 17:31:29 -0500 Subject: [PATCH] test --- iguana/iguana_accept.c | 2 +- iguana/iguana_msg.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_accept.c b/iguana/iguana_accept.c index 091cd472d..1fc0c3bd2 100755 --- a/iguana/iguana_accept.c +++ b/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); } \ No newline at end of file diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index dfc011908..8d42d0af9 100755 --- a/iguana/iguana_msg.c +++ b/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