Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f6b564a988
  1. 4
      iguana/iguana_spendvectors.c

4
iguana/iguana_spendvectors.c

@ -469,7 +469,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
txidind = B[starti].firsttxidind; txidind = B[starti].firsttxidind;
spendind = B[starti].firstvin; spendind = B[starti].firstvin;
emit = startemit; emit = startemit;
if ( coin->RTheight == 0 || bp->bundleheight+bp->n < coin->RTheight ) if ( 0 && (coin->RTheight == 0 || bp->bundleheight+bp->n < coin->RTheight) )
fprintf(stderr,"BALANCEGEN.[%d] %p[%d] starti.%d s%d <-> endi.%d s%d startemit.%d\n",bp->hdrsi,Xspendinds,numXspends,starti,spendind,endi,B[endi].firstvin+B[endi].numvins,startemit); fprintf(stderr,"BALANCEGEN.[%d] %p[%d] starti.%d s%d <-> endi.%d s%d startemit.%d\n",bp->hdrsi,Xspendinds,numXspends,starti,spendind,endi,B[endi].firstvin+B[endi].numvins,startemit);
for (i=starti; i<=endi; i++) for (i=starti; i<=endi; i++)
{ {
@ -827,6 +827,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi)
if ( fwrite(Uptr,sizeof(*Uptr),numunspents,fp2) == numunspents ) if ( fwrite(Uptr,sizeof(*Uptr),numunspents,fp2) == numunspents )
{ {
err = 0; err = 0;
if ( (hdrsi % 100) == 0 )
printf("[%d] of %d saved (%s) and (%s)\n",hdrsi,numhdrsi,fname,fname2); printf("[%d] of %d saved (%s) and (%s)\n",hdrsi,numhdrsi,fname,fname2);
} }
} }
@ -861,6 +862,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi)
printf("balances error copying (%s) -> (%s)\n",fname2,destfname); printf("balances error copying (%s) -> (%s)\n",fname2,destfname);
return(-1); return(-1);
} }
if ( (hdrsi % 100) == 0 )
printf("%s -> %s\n",fname,destfname); printf("%s -> %s\n",fname,destfname);
OS_removefile(fname,0); OS_removefile(fname,0);
OS_removefile(fname2,0); OS_removefile(fname2,0);

Loading…
Cancel
Save