Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c8811bfaa1
  1. 6
      iguana/iguana_unspents.c

6
iguana/iguana_unspents.c

@ -580,14 +580,14 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
else continue; else continue;
if ( spentbp != 0 && unspentind > 0 && unspentind < spentbp->ramchain.H.data->numunspents ) if ( spentbp != 0 && unspentind > 0 && unspentind < spentbp->ramchain.H.data->numunspents )
{ {
if ( now > spentbp->lastprefetch+20 || (spentbp->dirty % 50000) == 0 ) if ( now > spentbp->lastprefetch || (spentbp->dirty % 50000) == 0 )
{ {
iguana_ramchain_prefetch(coin,&spentbp->ramchain); iguana_ramchain_prefetch(coin,&spentbp->ramchain);
spentbp->lastprefetch = now; spentbp->lastprefetch = now;
} }
spentbp->dirty++; spentbp->dirty++;
//if ( iguana_volatileupdate(coin,incremental,bp,h,spendind,spentbp,unspentind) < 0 ) if ( iguana_volatileupdate(coin,incremental,bp,h,spendind,spentbp,unspentind) < 0 )
// errs++; errs++;
} }
else else
{ {

Loading…
Cancel
Save