|
|
@ -533,7 +533,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
} |
|
|
|
for (i=0; i<bp->n; i++) |
|
|
|
{ |
|
|
|
if ( (block= bp->blocks[i]) != 0 && block->fpipbits == 0 ) |
|
|
|
if ( (block= bp->blocks[i]) != 0 && (bits256_nonz(block->RO.prev_block) == 0 || block->RO.recvlen == 0 || block->fpipbits == 0 || block->fpos < 0) ) |
|
|
|
{ |
|
|
|
if ( now > block->issued+lag ) |
|
|
|
{ |
|
|
@ -561,8 +561,8 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
if ( flag != 0 && priority != 0 && laggard != 0 && coin->current == bp ) |
|
|
|
printf("[%d] reissued.%d currentflag.%d ht.%d s.%d finished.%d most.%d laggards.%d maxunfinished.%d\n",bp->hdrsi,flag,bp->currentflag,bp->bundleheight,bp->numsaved,finished,doneval,laggard,maxval); |
|
|
|
} |
|
|
|
//if ( bp == coin->current )
|
|
|
|
// return(counter);
|
|
|
|
if ( bp == coin->current ) |
|
|
|
return(counter); |
|
|
|
} |
|
|
|
for (i=0; i<bp->n; i++) |
|
|
|
{ |
|
|
|