|
@ -1297,10 +1297,9 @@ int32_t iguana_ramchain_extras(struct iguana_info *coin,struct iguana_ramchain * |
|
|
if ( (ramchain->hashmem= hashmem) != 0 ) |
|
|
if ( (ramchain->hashmem= hashmem) != 0 ) |
|
|
iguana_memreset(hashmem); |
|
|
iguana_memreset(hashmem); |
|
|
else printf("alloc ramchain->A %ld\n",sizeof(struct iguana_account) * ramchain->H.data->numpkinds); |
|
|
else printf("alloc ramchain->A %ld\n",sizeof(struct iguana_account) * ramchain->H.data->numpkinds); |
|
|
ramchain->A = (hashmem != 0) ? iguana_memalloc(hashmem,sizeof(struct iguana_account) * ramchain->H.data->numpkinds,1) : mycalloc('p',ramchain->H.data->numpkinds,sizeof(struct iguana_account)); |
|
|
ramchain->A = (hashmem != 0 && hashmem->ptr != 0) ? iguana_memalloc(hashmem,sizeof(struct iguana_account) * ramchain->H.data->numpkinds,1) : mycalloc('p',ramchain->H.data->numpkinds,sizeof(struct iguana_account)); |
|
|
ramchain->Uextras = (hashmem != 0) ? iguana_memalloc(hashmem,sizeof(*ramchain->Uextras) * ramchain->H.data->numunspents,1) : mycalloc('p',ramchain->H.data->numunspents,sizeof(*ramchain->Uextras)); |
|
|
ramchain->Uextras = (hashmem != 0 && hashmem->ptr != 0) ? iguana_memalloc(hashmem,sizeof(*ramchain->Uextras) * ramchain->H.data->numunspents,1) : mycalloc('p',ramchain->H.data->numunspents,sizeof(*ramchain->Uextras)); |
|
|
} |
|
|
} else err = iguana_volatilesmap(coin,ramchain); |
|
|
else err = iguana_volatilesmap(coin,ramchain); |
|
|
|
|
|
} |
|
|
} |
|
|
return(err); |
|
|
return(err); |
|
|
} |
|
|
} |
|
|