diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 1124959eb..c5c3b5eac 100755 --- a/iguana/iguana777.c +++ b/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 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; - for (hdrsi=helperid; hdrsiPREFETCHLAG >= 0) ? 1 : IGUANA_NUMHELPERS; + for (hdrsi=helperid; hdrsibundles[hdrsi]) == 0 ) return(-1); @@ -368,7 +371,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert } if ( convertflag == 0 ) { - for (hdrsi=helperid; hdrsibundles[hdrsi]) == 0 ) return(-1);