Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
63e7eaba37
  1. 6
      iguana/iguana_bundles.c

6
iguana/iguana_bundles.c

@ -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);
}
}

Loading…
Cancel
Save