From 1da37c47d96590ce49f2ba7c62f208b8f45cb1c4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 12 Mar 2016 15:51:43 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index dbb0fefd9..77b152889 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -467,14 +467,14 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int { if ( OS_milliseconds() > endmillis ) break; - if ( (block= bp->blocks[i]) != 0 ) + if ( (block= bp->blocks[i]) != 0 && block->RO.recvlen == 0 ) { - if ( block->fpipbits == 0 && (bp->issued[i] == 0 || now > bp->issued[i]+13) ) + if ( bp->issued[i] == 0 || now > bp->issued[i]+13 ) { - //if ( bp->bundleheight == 20000 ) - // printf("(%d:%d) ",bp->hdrsi,i); block->numrequests++; - iguana_blockQ(coin,bp,i,block->RO.hash2,bp->hdrsi == starti); + if ( bp->hdrsi == starti ) + printf("bundleQ issue [%d:%d]\n",bp->hdrsi,i); + iguana_blockQ(coin,bp,i,block->RO.hash2,0); bp->issued[i] = block->issued = now; counter++; if ( --max <= 0 )