Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8251da8efb
  1. 4
      iguana/iguana_unspents.c
  2. 2
      iguana/main.c

4
iguana/iguana_unspents.c

@ -469,7 +469,10 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
if ( spentbp != 0 && unspentind > 0 && unspentind < spentbp->ramchain.H.data->numunspents )
{
if ( spentbp->dirty == 0 )
{
spentbp->dirty = now;
iguana_ramchain_prefetch(coin,&spentbp->ramchain);
}
if ( incremental == 0 )
{
if ( spentbp->ramchain.Uextras == 0 )
@ -489,7 +492,6 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
u = &spentU[unspentind];
if ( (pkind= u->pkind) != 0 && pkind < spentbp->ramchain.H.data->numpkinds )
{
spentbp->dirty = now;
flag = -1;
if ( incremental == 0 )
{

2
iguana/main.c

@ -367,7 +367,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t pu
{
if ( fwrite(Uptr,sizeof(*Uptr),numunspents,fp2) == numunspents )
{
bp->dirty = 0;
//bp->dirty = 0;
err = 0;
printf("[%d] of %d saved (%s) and (%s)\n",hdrsi,numhdrsi,fname,fname2);
}

Loading…
Cancel
Save