diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 5f9e5543e..3689a2a7f 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -209,8 +209,8 @@ int32_t iguana_rwblock(struct supernet_info *myinfo,char *symbol,uint8_t zcash,u if ( rwflag == 1 ) { if ( zcash == 0 ) - x = zmsg->txn_count; - else x = msg->txn_count; + x = msg->txn_count; + else x = zmsg->txn_count; } //char str[65],str2[65]; printf("zcash.%d len.%d: block version.%d timestamp.%u bits.%x nonce.%u prev.(%s) %llx hash2.%s zlen.%d\n",zcash,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,bits256_str(str2,*hash2p),(int32_t)sizeof(struct iguana_msgzblockhdr)); len += iguana_rwvarint(rwflag,&serialized[len],&x);