From 6d4b54b34346c86b86d1904b59d35bacc59b01df Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 17:58:24 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_recv.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 0d49d04fe..2a3dcdbbf 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -515,7 +515,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) { printf("%d:%d.%d ",bp->hdrsi,j,block->numrequests); bp->issued[j] = now; - iguana_blockQ(coin,bp,j,bp->hashes[j],0); + iguana_blockQ(coin,bp,j,bp->hashes[j],1); if ( --issue < 0 ) break; } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 253a58e90..03605fd83 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -398,7 +398,8 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig //fprintf(stderr,"i.%d of %d bundleset\n",i,n); if ( (bp= iguana_bundleset(coin,&block,&bundlei,&blocks[i])) != 0 && bp->hdrsi < IGUANA_MAXACTIVEBUNDLES ) { - iguana_blockQ(coin,bp,bundlei,blocks[i].RO.hash2,0); + if ( (bundlei % coin->chain->bundlesize) < 1 ) + iguana_blockQ(coin,bp,bundlei,blocks[i].RO.hash2,0); } } }