Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
6f17e06c2f
  1. 4
      iguana/iguana_unspents.c

4
iguana/iguana_unspents.c

@ -120,9 +120,9 @@ 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 )
if ( time(NULL) > bp->lastprefetch+13 )
{
iguana_ramchain_prefetch(coin,&bp->ramchain,2);
iguana_ramchain_prefetch(coin,&bp->ramchain,6);
bp->lastprefetch = (uint32_t)time(NULL);
}
U = RAMCHAIN_PTR(rdata,Uoffset);

Loading…
Cancel
Save