|
@ -787,13 +787,13 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp) |
|
|
int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp) |
|
|
int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp) |
|
|
{ |
|
|
{ |
|
|
struct iguana_bundle *prevbp; int32_t i,retval; |
|
|
struct iguana_bundle *prevbp; int32_t i,retval; |
|
|
//#ifdef IGUANA_SERIALIZE_SPENDVECTORGEN
|
|
|
#ifdef IGUANA_SERIALIZE_SPENDVECTORGEN |
|
|
//if ( coin->MAXMEM <= 4*(1024L * 1024 * 1024) )
|
|
|
//if ( coin->MAXMEM <= 4*(1024L * 1024 * 1024) )
|
|
|
{ |
|
|
{ |
|
|
if ( (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-0*coin->MAXBUNDLES ) |
|
|
if ( (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-0*coin->MAXBUNDLES ) |
|
|
return(0); |
|
|
return(0); |
|
|
} |
|
|
} |
|
|
//#endif
|
|
|
#endif |
|
|
for (i=0; i<bp->hdrsi; i++) |
|
|
for (i=0; i<bp->hdrsi; i++) |
|
|
if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish < coin->startutc ) |
|
|
if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish < coin->startutc ) |
|
|
break; |
|
|
break; |
|
|