Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8950fbdd94
  1. 2
      iguana/iguana_recv.c
  2. 2
      iguana/iguana_unspents.c

2
iguana/iguana_recv.c

@ -795,7 +795,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana
}
if ( bp != 0 )
bp->dirty++;
if ( 1 )//&& bp != 0 && bp->hdrsi == coin->bundlescount-1 )
if ( 0 )//&& bp != 0 && bp->hdrsi == coin->bundlescount-1 )
{
int32_t i; static int32_t numrecv;
numrecv++;

2
iguana/iguana_unspents.c

@ -186,7 +186,7 @@ uint32_t iguana_sparseadd(uint8_t *bits,uint32_t ind,int32_t width,uint32_t tabl
printf("tableentries.%d\n",n);
}
ramchain->sparsesearches++;
//if ( (ramchain->sparsesearches % 1000) == 0 )
if ( (ramchain->sparsesearches % 1000) == 0 )
printf("[%3d] %7d.[%-2d %8d] %5.3f sparse searches.%-10ld iters.%-10ld hits.%-10ld %5.2f%% max.%ld\n",ramchain->height/ramchain->H.data->numblocks,ramchain->height,width,tablesize,(double)ramchain->sparseiters/(1+ramchain->sparsesearches),ramchain->sparsesearches,ramchain->sparseiters,ramchain->sparsehits,100.*(double)ramchain->sparsehits/(1+ramchain->sparsesearches),ramchain->sparsemax+1);
if ( width == 32 )
{

Loading…
Cancel
Save