diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 18556ed68..f8759341b 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -844,7 +844,7 @@ int32_t iguana_bundlefinalize(struct iguana_info *coin,struct iguana_bundle *bp, coin->emitbusy++; if ( iguana_bundlesaveHT(coin,mem,memB,bp,(uint32_t)time(NULL)) == 0 ) { - fprintf(stderr,"emitQ done coin.%p bp.[%d] ht.%d\n",coin,bp->hdrsi,bp->bundleheight); + //fprintf(stderr,"emitQ done coin.%p bp.[%d] ht.%d\n",coin,bp->hdrsi,bp->bundleheight); bp->emitfinish = (uint32_t)time(NULL) + 1; iguana_bundletweak(coin,bp); coin->numemitted++; @@ -855,7 +855,12 @@ int32_t iguana_bundlefinalize(struct iguana_info *coin,struct iguana_bundle *bp, bp->emitfinish = 0; } coin->emitbusy--; - } else printf("interloper! [%d] save interupted, will retry next iteration\n",bp->hdrsi); + } + else + { + bp->emitfinish = 0; + printf("interloper! [%d] save interupted, will retry next iteration\n",bp->hdrsi); + } } return(1); } @@ -1137,7 +1142,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag) } else { - if ( firstgap == 0 && bp->numsaved < bp->n && bp->numcached < bp->n && (bp->ramchain.H.data == 0 || iguana_bundleready(coin,bp,0) != bp->n || bp->hdrsi == coin->longestchain/coin->chain->bundlesize) ) + if ( firstgap == 0 && bp->numsaved < bp->n && bp->numcached < bp->n && (bp->ramchain.H.data == 0 || bp->hdrsi == coin->longestchain/coin->chain->bundlesize) ) //iguana_bundleready(coin,bp,0) != bp->n || { //printf("firstgap <- [%d] emit.%u bp->n.%d numsaved.%d numcached.%d numhashes.%d\n",bp->hdrsi,bp->emitfinish,bp->n,bp->numsaved,bp->numcached,bp->numhashes); firstgap = bp; diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index dcc2cd828..a4fa33ea5 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2457,7 +2457,7 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str if ( retval == 0 )//|| bp->generrs > 3 ) { char dirname[1024]; - printf("delete %d files hdrs.%d retval.%d\n",num,bp->hdrsi,retval); + //printf("delete %d files hdrs.%d retval.%d\n",num,bp->hdrsi,retval); if ( bp_n == bp->n && bp->n == coin->chain->bundlesize && bp->hdrsi < coin->bundlescount-3 ) { for (j=starti; j<=endi; j++)