Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4d89c7a131
  1. 2
      iguana/iguana_ramchain.c
  2. 4
      iguana/iguana_unspents.c

2
iguana/iguana_ramchain.c

@ -814,7 +814,7 @@ void iguana_ramchain_prefetch(struct iguana_info *coin,struct iguana_ramchain *r
for (i=0; i<ramchain->filesize; i++)
if ( ptr[i] != 0 )
nonz++;
printf("nonz.%d of %d\n",nonz,(int32_t)ramchain->filesize);
//printf("nonz.%d of %d\n",nonz,(int32_t)ramchain->filesize);
return;
U = (void *)(long)((long)ramchain->H.data + ramchain->H.data->Uoffset);
T = (void *)(long)((long)ramchain->H.data + ramchain->H.data->Toffset);

4
iguana/iguana_unspents.c

@ -455,9 +455,9 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
now = (uint32_t)time(NULL);
if ( spentbp != 0 && unspentind > 0 && unspentind < spentbp->ramchain.H.data->numunspents )
{
if ( (bp == spentbp && spentbp->dirty == 0) || (spentbp != bp && (spentbp->dirty % 100000) == 3) )
if ( (bp == spentbp && spentbp->dirty == 0) || (spentbp != bp && (spentbp->dirty % 10000) == 3) )
{
printf("current.%d prefetch.[%d]\n",spentbp == bp,spentbp->hdrsi);
//printf("current.%d prefetch.[%d]\n",spentbp == bp,spentbp->hdrsi);
iguana_ramchain_prefetch(coin,&spentbp->ramchain);
}
spentbp->dirty++;

Loading…
Cancel
Save