Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
20de21306b
  1. 6
      iguana/iguana_bundles.c

6
iguana/iguana_bundles.c

@ -780,7 +780,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
block->hdrsi = bp->hdrsi, block->bundlei = bundlei;
if ( bp->minrequests == 0 || (block->numrequests > 0 && block->numrequests < bp->minrequests) )
bp->minrequests = block->numrequests;
if ( (bp->hdrsi == 0 && bundlei == 0) || bits256_nonz(block->RO.prev_block) > 0 )
if ( (bp->hdrsi == 0 && bundlei == 0) || bits256_nonz(block->RO.prev_block) != 0 )
{
if ( block->fpipbits != 0 && block->fpos >= 0 )
numsaved++;
@ -790,7 +790,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
datasize += block->RO.recvlen;
}
}
else if ( 1 && bp == coin->current && bp->speculativecache[bundlei] == 0 )
else if ( 0 && bp == coin->current && bp->speculativecache[bundlei] == 0 )
{
char str[65]; printf("missing prev_block [%d:%d] %s\n",bp->hdrsi,bundlei,bits256_str(str,bp->hashes[bundlei]));
if ( block != 0 )
@ -815,7 +815,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
numhashes++;
bp->checkedtmp++;
}
if ( ((block= bp->blocks[bundlei]) != 0 && block->fpipbits != 0 && block->fpos >= 0 && block->RO.recvlen != 0 && bits256_nonz(block->RO.prev_block) != 0) || bp->speculativecache[bundlei] != 0 )
if ( ((block= bp->blocks[bundlei]) != 0 && block->fpipbits != 0 && block->fpos >= 0 && ((bp->hdrsi == 0 && bundlei == 0) || bits256_nonz(block->RO.prev_block) != 0)) || bp->speculativecache[bundlei] != 0 )
numcached++;
}
bp->datasize = datasize;

Loading…
Cancel
Save