|
@ -332,7 +332,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,struct iguana_bundle *bp) |
|
|
{ |
|
|
{ |
|
|
if ( (spentbp= iguana_spent(coin,&prevhash,&unspentind,ramchain,bp->hdrsi,s)) != 0 ) |
|
|
if ( (spentbp= iguana_spent(coin,&prevhash,&unspentind,ramchain,bp->hdrsi,s)) != 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( now > spentbp->lastprefetch+30 || (spentbp->dirty % 100000) == 0 ) |
|
|
if ( now > spentbp->lastprefetch+3 )//|| (spentbp->dirty % 10000) == 0 )
|
|
|
{ |
|
|
{ |
|
|
//printf("u current.%d prefetch.[%d] lag.%u\n",spentbp == bp,spentbp->hdrsi,now - spentbp->lastprefetch);
|
|
|
//printf("u current.%d prefetch.[%d] lag.%u\n",spentbp == bp,spentbp->hdrsi,now - spentbp->lastprefetch);
|
|
|
iguana_ramchain_prefetch(coin,&spentbp->ramchain); |
|
|
iguana_ramchain_prefetch(coin,&spentbp->ramchain); |
|
@ -488,7 +488,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3 |
|
|
now = (uint32_t)time(NULL); |
|
|
now = (uint32_t)time(NULL); |
|
|
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+30 || (spentbp->dirty % 100000) == 0 ) |
|
|
if ( now > spentbp->lastprefetch+3 )//|| (spentbp->dirty % 10000) == 0 )
|
|
|
{ |
|
|
{ |
|
|
//printf("current.%d prefetch.[%d] lag.%u\n",spentbp == bp,spentbp->hdrsi,now - spentbp->lastprefetch);
|
|
|
//printf("current.%d prefetch.[%d] lag.%u\n",spentbp == bp,spentbp->hdrsi,now - spentbp->lastprefetch);
|
|
|
iguana_ramchain_prefetch(coin,&spentbp->ramchain); |
|
|
iguana_ramchain_prefetch(coin,&spentbp->ramchain); |
|
|