|
|
@ -635,7 +635,7 @@ int32_t iguana_bundlehdr(struct iguana_info *coin,struct iguana_bundle *bp,int32 |
|
|
|
{ |
|
|
|
char str[64]; |
|
|
|
bp->hdrtime = (uint32_t)time(NULL); |
|
|
|
if ( bp == coin->current )//&& bp->speculative != 0 )
|
|
|
|
if ( bp == coin->current && bp->speculative != 0 ) |
|
|
|
{ |
|
|
|
//printf("iguana_bundlehdr.[%d] %d %s\n",bp->hdrsi,bp->numspec,bits256_str(str,bp->hashes[0]));
|
|
|
|
if ( iguana_blocksmissing(coin,&avail,missings,0,bp,0,3) > 0 ) |
|
|
@ -926,12 +926,10 @@ double iguana_bundlemissings(struct iguana_info *coin,struct iguana_bundle *bp,d |
|
|
|
{ |
|
|
|
dist = bp->hdrsi - coin->current->hdrsi; |
|
|
|
if ( bp->numcached > bp->n - (coin->MAXBUNDLES - dist) ) |
|
|
|
{ |
|
|
|
priority += 1 + (bp == coin->current); |
|
|
|
} |
|
|
|
if ( queue_size(&coin->priorityQ) < (2 * bp->n)/(dist+1) ) |
|
|
|
{ |
|
|
|
//printf("[%d] dist.%d numcached.%d priority.%d\n",bp->hdrsi,dist,bp->numcached,priority);
|
|
|
|
printf("[%d] dist.%d numcached.%d priority.%d\n",bp->hdrsi,dist,bp->numcached,priority); |
|
|
|
iguana_bundleissuemissing(coin,bp,missings); |
|
|
|
} |
|
|
|
} |
|
|
|