From 3eb494dea3bdc676052962267ed487f473b78b2b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 19 Apr 2016 18:44:52 -0500 Subject: [PATCH] test --- iguana/iguana_ramchain.c | 3 +-- iguana/iguana_unspents.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 064e6d369..4085df81e 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2481,8 +2481,7 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str if ( bundlei != endi+1 ) { iguana_bundlemapfree(coin,0,0,ipbits,ptrs,filesizes,num,R,starti,endi); - if ( (block= bp->blocks[bundlei]) != 0 ) - iguana_blockunmark(coin,block,bp,bundlei,1); + iguana_blockunmark(coin,bp->blocks[bundlei],bp,bundlei,1); printf("error mapping hdrsi.%d bundlei.%d\n",bp->hdrsi,bundlei); return(-1); } diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 622f6d75d..1cb6e1aea 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1748,7 +1748,7 @@ void *iguana_ramchainfile(struct iguana_info *coin,struct iguana_ramchain *dest, printf("mapped.%s\n",bits256_str(str,R->H.data->firsthash2)); } else return(ptr); iguana_blockunmark(coin,block,bp,bundlei,1); - } else printf("ramchainfile ptr.%p block.%p mapchaininit error\n",ptr,block); + } iguana_ramchain_free(coin,R,1); } //else printf("ramchainfile ptr.%p block.%p\n",ptr,block); return(0);