diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 20c845e29..85abcd055 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -18,7 +18,7 @@ #include "../crypto777/OS_portable.h" #include "SuperNET.h" -#define SPARSECOUNT(x) ((x) << 1) +#define SPARSECOUNT(x) ((x) << 2) typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len); diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index a9f3e907f..490d493a8 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -298,8 +298,7 @@ struct iguana_bundle *iguana_bundlecreate(struct iguana_info *coin,int32_t *bund coin->bundles[coin->bundlescount-1]->nextbp = bp; *bundleip = 0; bits256_str(str,bundlehash2); - sprintf(dirname,"tmp/%s/%d",coin->symbol,bp->bundleheight); - OS_ensure_directory(dirname); + sprintf(dirname,"tmp/%s/%d",coin->symbol,bp->bundleheight), OS_ensure_directory(dirname); //printf("ht.%d alloc.[%d] new hdrs.%s %s\n",bp->bundleheight,coin->bundlescount,str,bits256_str(str2,allhash)); iguana_bundlehash2add(coin,0,bp,0,bundlehash2); if ( issueflag != 0 ) @@ -386,7 +385,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp,int printf("iguana_bundlecalcs.(%s) illegal hdrsi.%d bundlei.%d checki.%d\n",fname,hdrsi,bundlei,checki); continue; } - if ( bp->checkedtmp < bp->n && (fp= fopen(fname,"rb")) != 0 ) + if ( 0 && bp->checkedtmp < bp->n && (fp= fopen(fname,"rb")) != 0 ) { fseek(fp,0,SEEK_END); if ( block->RO.recvlen == 0 ) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index f88396adb..31c447853 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -903,7 +903,7 @@ void *iguana_ramchain_offset(void *dest,uint8_t *lhash,FILE *fp,uint64_t fpos,vo int64_t _iguana_rdata_action(FILE *fp,bits256 lhashes[IGUANA_NUMLHASHES],void *destptr,uint64_t fpos,uint32_t expanded,uint32_t numtxids,uint32_t numunspents,uint32_t numspends,uint32_t numpkinds,uint32_t numexternaltxids,uint32_t scriptspace,uint32_t txsparsebits,uint64_t numtxsparse,uint32_t pksparsebits,uint64_t numpksparse,uint64_t srcsize,RAMCHAIN_FUNC,int32_t numblocks) { #define RAMCHAIN_LARG(ind) ((lhashes == 0) ? 0 : lhashes[ind].bytes) -#define SPARSECOUNT(x) ((x) << 1) +#define SPARSECOUNT(x) ((x) << 2) FILE *fparg = 0; int32_t iter; uint64_t txbits,pkbits,offset = 0; struct iguana_ramchaindata *rdata = destptr; if ( expanded != 0 ) {