Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
18ff447001
  1. 5
      iguana/iguana_unspents.c

5
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;

Loading…
Cancel
Save