Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8440c5026b
  1. 4
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_unspents.c

4
iguana/iguana_bundles.c

@ -634,10 +634,10 @@ int32_t iguana_bundlehdr(struct iguana_info *coin,struct iguana_bundle *bp,int32
{
int32_t counter=0;
int32_t i; uint32_t now;
if ( coin->enableCACHE != 0 && bp->speculative == 0 && bp->numhashes < bp->n )
if ( coin->enableCACHE != 0 && bp->numhashes < bp->n )
{
char str[64];
if ( 0 && bp == coin->current )
if ( bp->hdrsi == coin->bundlescount-1 || bp == coin->current )
printf("hdr ITERATE bundle.%d vs %d: h.%d n.%d r.%d s.%d finished.%d speculative.%p\n",bp->bundleheight,coin->longestchain-coin->chain->bundlesize,bp->numhashes,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,bp->speculative);
queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,bp->hashes[0])),1);
}

2
iguana/iguana_unspents.c

@ -190,7 +190,7 @@ uint32_t iguana_sparseadd(uint8_t *bits,uint32_t ind,int32_t width,uint32_t tabl
sparsesearches++;
if ( 0 && setind == 0 )
printf("tablesize.%d width.%d bitoffset.%d\n",tablesize,width,(int32_t)bitoffset);
//if ( (sparsesearches % 100000) == 0 )
if ( (sparsesearches % 100000) == 0 )
printf("[%d %d] %.3f sparse searches.%ld iters.%ld hits.%ld %.2f%% max.%ld\n",width,tablesize,(double)sparseiters/(1+sparsesearches),sparsesearches,sparseiters,sparsehits,100.*(double)sparsehits/(1+sparsesearches),sparsemax+1);
for (i=0; i<tablesize; i++,ind++,bitoffset+=width)
{

Loading…
Cancel
Save