diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 8ff761c22..35ac85ac0 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -120,6 +120,11 @@ int32_t iguana_unspentindfind(struct supernet_info *myinfo,struct iguana_info *c unspentind = (tp->firstvout + vout); if ( coinaddr != 0 && unspentind > 0 && (hdrsi= *heightp/coin->chain->bundlesize) >= 0 && hdrsi < coin->bundlescount && (bp= coin->bundles[hdrsi]) != 0 && (rdata= bp->ramchain.H.data) != 0 && unspentind < rdata->numunspents ) { + if ( bp->lastprefetch == 0 ) + { + iguana_ramchain_prefetch(coin,&bp->ramchain,0); + bp->lastprefetch = (uint32_t)time(NULL); + } U = RAMCHAIN_PTR(rdata,Uoffset); P = RAMCHAIN_PTR(rdata,Poffset); pkind = U[unspentind].pkind;