From 3c23d5e702331b068ad1c1e52c03f85a69a27d9a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 9 Jun 2016 08:12:27 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 2b67f4904..3799f21aa 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -804,7 +804,6 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig printf("iguana_recvblockhdrs null blocks?\n"); return(req); } - //bsize = 1 + iguana_blockhdrsize(coin->symbol,coin->chain->zcash,coin->chain->auxpow); if ( zblocks != 0 && n > 0 ) { memset(prevhash2.bytes,0,sizeof(prevhash2)); @@ -840,7 +839,7 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig // printf("blockhash[%d] cant be found n.%d\n",i,n); } char str[65]; - if ( 0 && bp == coin->current ) + if ( 1 && bp == coin->current ) printf("i.%d n.%d match.%d blockhdrs.%s hdrsi.%d\n",i,n,match,bits256_str(str,zblocks[0].RO.hash2),firstbp!=0?firstbp->hdrsi:-1); if ( firstbp != 0 && match == coin->chain->bundlesize-1 && n == firstbp->n ) { @@ -1364,7 +1363,7 @@ int32_t iguana_reqhdrs(struct iguana_info *coin) else lag = 13; if ( time(NULL) > bp->issuetime+lag ) { - if ( 1 && bp == coin->current ) + if ( 0 && bp == coin->current ) printf("LAG.%ld hdrsi.%d numhashes.%d:%d needhdrs.%d qsize.%d zcount.%d\n",time(NULL)-bp->hdrtime,i,bp->numhashes,bp->n,iguana_needhdrs(coin),queue_size(&coin->hdrsQ),coin->zcount); if ( bp->issuetime == 0 ) coin->numpendings++;