Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
19646b21ff
  1. 9
      iguana/iguana777.c

9
iguana/iguana777.c

@ -342,9 +342,12 @@ int32_t iguana_balancefinished(struct iguana_info *coin)
int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convertflag) int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convertflag)
{ {
int32_t hdrsi,retval,n,max,num = 0; struct iguana_bundle *bp; int32_t hdrsi,retval,n,max,incr,num = 0; struct iguana_bundle *bp;
if ( coin->PREFETCHLAG >= 0 && helperid != 0 )
return(0);
max = coin->bundlescount-1; max = coin->bundlescount-1;
for (hdrsi=helperid; hdrsi<max; hdrsi+=IGUANA_NUMHELPERS) incr = (coin->PREFETCHLAG >= 0) ? 1 : IGUANA_NUMHELPERS;
for (hdrsi=helperid; hdrsi<max; hdrsi+=incr)
{ {
if ( (bp= coin->bundles[hdrsi]) == 0 ) if ( (bp= coin->bundles[hdrsi]) == 0 )
return(-1); return(-1);
@ -368,7 +371,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
} }
if ( convertflag == 0 ) if ( convertflag == 0 )
{ {
for (hdrsi=helperid; hdrsi<max; hdrsi+=IGUANA_NUMHELPERS) for (hdrsi=helperid; hdrsi<max; hdrsi+=incr)
{ {
if ( (bp= coin->bundles[hdrsi]) == 0 ) if ( (bp= coin->bundles[hdrsi]) == 0 )
return(-1); return(-1);

Loading…
Cancel
Save