From c261e11e86b097c50edcd523eed3fc458542e116 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 17 Mar 2016 05:33:07 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 224c8b280..c162d144b 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -440,7 +440,7 @@ int32_t iguana_bundlekick(struct iguana_info *coin,struct iguana_bundle *bp,int3 iguana_blockQ(coin,bp,i,block->RO.hash2,1); } else*/ - iguana_blockQ("kick",coin,bp,i,block->RO.hash2,0); + iguana_blockQ("kick",coin,bp,i,block->RO.hash2,1); bp->issued[i] = block->issued = now; counter++; if ( --max <= 0 ) @@ -453,7 +453,7 @@ int32_t iguana_bundlekick(struct iguana_info *coin,struct iguana_bundle *bp,int3 } else n++, issued++; } //else printf("iguana_bundleiters[%d] unexpected null block[%d]\n",bp->bundleheight,i); } - return(issued); + return(counter); } int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int32_t timelimit) @@ -541,14 +541,14 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int return(0); } //printf("BUNDLEITERS.%d\n",bp->hdrsi); - if ( bp->hdrsi <= starti+8 && coin->lastpending != 0 ) + if ( bp->hdrsi <= starti+range && coin->lastpending != 0 ) { for (i=0; in; i++) { if ( (block= bp->blocks[i]) != 0 && block->numrequests == 0 )//&& block->mainchain != 0 ) { block->numrequests++; - iguana_blockQ("iters",coin,bp,i,block->RO.hash2,bp == coin->current); + iguana_blockQ("iters",coin,bp,i,block->RO.hash2,1); //printf("%d ",i); } }