Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
94ebd73d36
  1. 2
      iguana/iguana_blocks.c
  2. 3
      iguana/iguana_ramchain.c
  3. 2
      iguana/iguana_spendvectors.c
  4. 3
      iguana/iguana_unspents.c

2
iguana/iguana_blocks.c

@ -288,7 +288,7 @@ int32_t iguana_blocksizecheck(char *debugstr,uint8_t zcash,struct iguana_block *
{
if ( block->RO.allocsize == 0 || block->RO.allocsize < bsize )
{
printf("%s block validate warning: mismatched size %d vs %d\n",debugstr,block->RO.allocsize,bsize);
//printf("%s block validate warning: mismatched size %d vs %d\n",debugstr,block->RO.allocsize,bsize);
block->RO.allocsize = bsize;
} else return(-1);
return(bsize);

3
iguana/iguana_ramchain.c

@ -1349,7 +1349,8 @@ int32_t iguana_Xspendmap(struct iguana_info *coin,struct iguana_ramchain *ramcha
bp->startutxo = bp->utxofinish = (uint32_t)time(NULL);
if ( bp->Xvalid == 0 )
{
printf("[%d] filesize %ld Xspendptr.%p %p num.%d\n",bp->hdrsi,filesize,ramchain->Xspendptr,ramchain->Xspendinds,ramchain->numXspends);
if ( (rand() % 10) == 0 )
printf("[%d] filesize %ld Xspendptr.%p %p num.%d\n",bp->hdrsi,filesize,ramchain->Xspendptr,ramchain->Xspendinds,ramchain->numXspends);
bp->Xvalid = 1;
}
return(ramchain->numXspends);

2
iguana/iguana_spendvectors.c

@ -84,7 +84,7 @@ int32_t iguana_spendvectorsave(struct iguana_info *coin,struct iguana_bundle *bp
printf("error mapping Xspendmap.(%s)\n",fname);
else
{
printf("created.(%s) %p[%d]\n",fname,bp->ramchain.Xspendinds,bp->ramchain.numXspends);
//printf("created.(%s) %p[%d]\n",fname,bp->ramchain.Xspendinds,bp->ramchain.numXspends);
retval = 0;
}
}

3
iguana/iguana_unspents.c

@ -1151,7 +1151,7 @@ int32_t iguana_utxoaddr_validate(struct supernet_info *myinfo,struct iguana_info
iguana_rwutxoaddr(0,ind,item,&UA);
errs += iguana_utxoaddr_check(myinfo,coin,lastheight,unspents,max,&UA);
total++;
if ( (total % 10000) == 0 )
if ( (total % 1000) == 0 )
fprintf(stderr,".");
}
}
@ -1284,6 +1284,7 @@ continue;
iguana_utxoaddr_purge(coin);
if ( iguana_utxoaddr_map(coin,fname) != 0 )
{
printf("validating %s HIST BALANCE %s %.8f errs %d\n",fname2,bits256_str(str,coin->utxoaddrhash),dstr(coin->histbalance),errs);
errs = iguana_utxoaddr_validate(myinfo,coin,height);
printf("gen %s HIST BALANCE %s %.8f errs %d\n",fname2,bits256_str(str,coin->utxoaddrhash),dstr(coin->histbalance),errs);
if ( errs != 0 )

Loading…
Cancel
Save