diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 4085df81e..2953c201d 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2457,7 +2457,12 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str //printf("mapchain.[%d:%d] %p[%ld]\n",bp->hdrsi,bundlei,ptrs[bundlei],filesizes[bundlei]); sprintf(fname,"save.%d",bp->hdrsi); if ( iguana_mapchaininit(fname,coin,mapchain,bp,bundlei,block,ptrs[bundlei],filesizes[bundlei]) < 0 ) - break; + { + iguana_bundlemapfree(coin,0,0,ipbits,ptrs,filesizes,num,R,starti,endi); + iguana_blockunmark(coin,bp->blocks[bundlei],bp,bundlei,1); + printf("error mapping hdrsi.%d bundlei.%d\n",bp->hdrsi,bundlei); + return(-1); + } //printf("done mapchain.[%d:%d]\n",bp->hdrsi,bundlei); numtxids += (mapchain->H.data->numtxids - 1); numunspents += (mapchain->H.data->numunspents - 1); diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index fecf6f891..8136f06cf 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -2076,7 +2076,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp, } } bp->validatehash = validatehash; - } else printf("skip validate.[%d] validated.%u force.%d\n",bp->hdrsi,bp->validated,forceflag); + } // else printf("skip validate.[%d] validated.%u force.%d\n",bp->hdrsi,bp->validated,forceflag); if ( errs != 0 ) { printf("remove.[%d]\n",bp->hdrsi); diff --git a/iguana/main.c b/iguana/main.c index 47d168aa8..1c33f1f3b 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -470,7 +470,7 @@ void mainloop(struct supernet_info *myinfo) } pangea_queues(SuperNET_MYINFO(0)); if ( flag == 0 ) - usleep(1000 + isRT*100000 + (numpeers == 0)*1000000); + usleep(10000 + isRT*100000 + (numpeers == 0)*1000000); //iguana_jsonQ(); // cant do this here safely, need to send to coin specific queue } }