From 52d1196783be83086acc87733390b8e8953c3998 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 May 2016 20:51:22 -0500 Subject: [PATCH] test --- iguana/iguana_msg.c | 2 +- iguana/iguana_tx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index d0934016b..accb88bae 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -88,7 +88,7 @@ int32_t iguana_rwblock(int32_t rwflag,bits256 *hash2p,uint8_t *serialized,struct len += iguana_rwnum(rwflag,&serialized[len],sizeof(msg->H.bits),&msg->H.bits); len += iguana_rwnum(rwflag,&serialized[len],sizeof(msg->H.nonce),&msg->H.nonce); *hash2p = bits256_doublesha256(blockhash,serialized,len); - char str[65]; printf("len.%d: block version.%d timestamp.%u bits.%x nonce.%u prev.(%s) %llx blockhash.(%s) %llx\n",len,msg->H.version,msg->H.timestamp,msg->H.bits,msg->H.nonce,bits256_str(str,msg->H.prev_block),(long long)msg->H.merkle_root.txid,blockhash,(long long)hash2p->txid); + //char str[65]; printf("len.%d: block version.%d timestamp.%u bits.%x nonce.%u prev.(%s) %llx blockhash.(%s) %llx\n",len,msg->H.version,msg->H.timestamp,msg->H.bits,msg->H.nonce,bits256_str(str,msg->H.prev_block),(long long)msg->H.merkle_root.txid,blockhash,(long long)hash2p->txid); if ( rwflag != 0 ) x = msg->txn_count; len += iguana_rwvarint(rwflag,&serialized[len],&x); diff --git a/iguana/iguana_tx.c b/iguana/iguana_tx.c index 4d5681dfc..fe33e5835 100755 --- a/iguana/iguana_tx.c +++ b/iguana/iguana_tx.c @@ -275,7 +275,7 @@ int32_t iguana_peerblockrequest(struct iguana_info *coin,uint8_t *blockspace,int { if ( i == 81 ) printf(" "); - printf("%02x",addr->blockspace[i + sizeof(struct iguana_msghdr)]); + printf("%02x",blockspace[i + sizeof(struct iguana_msghdr)]); } printf(" blocksize.%d\n",total); for (i=0; i<16; i++)