|
@ -875,7 +875,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru |
|
|
{ |
|
|
{ |
|
|
if ( (retval= iguana_bundlefinish(coin,bp)) > 0 ) |
|
|
if ( (retval= iguana_bundlefinish(coin,bp)) > 0 ) |
|
|
{ |
|
|
{ |
|
|
//printf("moved to balancesQ.%d bundleiters.%d\n",bp->hdrsi,bp->bundleheight);
|
|
|
printf("moved to balancesQ.%d bundleiters.%d\n",bp->hdrsi,bp->bundleheight); |
|
|
bp->queued = 0; |
|
|
bp->queued = 0; |
|
|
return(0); |
|
|
return(0); |
|
|
} //else printf("finish incomplete.%d\n",bp->hdrsi);
|
|
|
} //else printf("finish incomplete.%d\n",bp->hdrsi);
|
|
@ -894,10 +894,6 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru |
|
|
bp->emitfinish = 1; |
|
|
bp->emitfinish = 1; |
|
|
iguana_bundletweak(coin,bp); |
|
|
iguana_bundletweak(coin,bp); |
|
|
sleep(1); // just in case data isnt totally sync'ed to HDD
|
|
|
sleep(1); // just in case data isnt totally sync'ed to HDD
|
|
|
if ( 0 ) |
|
|
|
|
|
iguana_emitQ(coin,bp); |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
coin->emitbusy++; |
|
|
coin->emitbusy++; |
|
|
if ( iguana_bundlesaveHT(coin,mem,memB,bp,(uint32_t)time(NULL)) == 0 ) |
|
|
if ( iguana_bundlesaveHT(coin,mem,memB,bp,(uint32_t)time(NULL)) == 0 ) |
|
|
{ |
|
|
{ |
|
@ -912,7 +908,6 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru |
|
|
} |
|
|
} |
|
|
coin->emitbusy--; |
|
|
coin->emitbusy--; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
retval = 1; |
|
|
retval = 1; |
|
|
} |
|
|
} |
|
|
else if ( bp->hdrsi >= starti && bp->hdrsi <= starti+range ) |
|
|
else if ( bp->hdrsi >= starti && bp->hdrsi <= starti+range ) |
|
@ -971,6 +966,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
printf("done hdrs.%d\n",bp->hdrsi); |
|
|
iguana_bundleQ(coin,bp,1000); |
|
|
iguana_bundleQ(coin,bp,1000); |
|
|
return(retval); |
|
|
return(retval); |
|
|
} |
|
|
} |
|
|