diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 51880defd..7068d46df 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -476,12 +476,12 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int printf("skip utxogen as spendvectorsaved.%u\n",coin->spendvectorsaved); return(0); } - printf("helperid.%d start %s utxogen\n",helperid,coin->symbol); if ( (incr= IGUANA_NUMHELPERS) > 8 ) incr = 8; max = coin->bundlescount; - if ( coin->bundles[max-1] == 0 || (coin->bundles[max-1] != 0 && coin->bundles[max-1]->emitfinish <= 1) ) + if ( coin->bundles[max-1] == coin->current || coin->bundles[max-1] == 0 || (coin->bundles[max-1] != 0 && coin->bundles[max-1]->emitfinish <= 1) ) max--; + printf("helperid.%d start %s utxogen bundlescount.%d max.%d\n",helperid,coin->symbol,coin->bundlescount,max); if ( helperid < incr ) { for (hdrsi=helperid; hdrsi