|
|
@ -1284,7 +1284,7 @@ int64_t iguana_ramchain_init(struct iguana_ramchain *ramchain,struct OS_memspace |
|
|
|
ramchain->expanded = (expanded != 0); |
|
|
|
if ( (ramchain->hashmem= hashmem) != 0 ) |
|
|
|
iguana_memreset(hashmem); |
|
|
|
rdata = ramchain->H.data = mem->ptr, offset += sizeof(struct iguana_ramchaindata); |
|
|
|
rdata = ramchain->H.data = mem->ptr;//, offset += sizeof(struct iguana_ramchaindata);
|
|
|
|
if ( (rdata->firsti= firsti) != 0 ) |
|
|
|
{ |
|
|
|
numtxids++, numunspents++, numspends++; |
|
|
@ -1328,7 +1328,7 @@ int32_t iguana_ramchain_alloc(struct iguana_info *coin,struct iguana_ramchain *r |
|
|
|
B = 0, Ux = 0, Sx = 0, P = 0, A = 0, X = 0, Kspace = TXbits = PKbits = 0, U = 0, S = 0, T = 0; |
|
|
|
memset(ramchain,0,sizeof(*ramchain)); |
|
|
|
ramchain->height = height; |
|
|
|
allocsize = _iguana_rdata_action(0,0,0,0,1,numtxids,numunspents,numspends,numpkinds,numexternaltxids,scriptspace,0,0,0,0,0,RAMCHAIN_ARG,numblocks) + sizeof(struct iguana_ramchaindata); |
|
|
|
allocsize = _iguana_rdata_action(0,0,0,0,1,numtxids,numunspents,numspends,numpkinds,numexternaltxids,scriptspace,0,0,0,0,0,RAMCHAIN_ARG,numblocks); |
|
|
|
//printf("T.%d U.%d S.%d P.%d X.%d -> %ld\n",numtxids,numunspents,numspends,numpkinds,numexternaltxids,(long)allocsize);
|
|
|
|
memset(mem,0,sizeof(*mem)); |
|
|
|
memset(hashmem,0,sizeof(*hashmem)); |
|
|
|