From 1d8599617b277f76edcb70218ce8a713c4c2aa61 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 14 Mar 2016 03:42:27 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index ae58fab1c..da2baad77 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -843,8 +843,8 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana iguana_bloomset(coin,&bp->bloom,0,bit); }*/ char str[65]; - if ( 0 && bundlei >= 0 ) - fprintf(stderr,"blockRECV %s [%d:%d] block.%08x | h.%d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,bp!=0?bp->numhashes:-1); + //if ( 0 && bundlei >= 0 ) + fprintf(stderr,"blockRECV.%d %s [%d:%d] block.%08x | h.%d\n",req->numtx,bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,bp!=0?bp->numhashes:-1); if ( bundlei == 1 && bp != 0 && bp->numhashes < bp->n ) { //printf("reissue hdrs request for [%d]\n",bp->hdrsi); @@ -852,7 +852,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana } if ( block != 0 ) { - block->RO.txn_count = origblock->RO.txn_count; + block->RO.txn_count = req->numtx; if ( 0 && bp != 0 && bundlei > 0 && bits256_nonz(block->RO.prev_block) > 0 && bits256_cmp(block->RO.prev_block,bp->hashes[bundlei-1]) != 0 ) { if ( bundlei > 0 )