From 77e2b931c0acb2293a8cc8d8fbb93d9167b11696 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 20 Apr 2016 23:41:26 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 64f51f6b5..917f42af8 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -165,7 +165,7 @@ void iguana_volatilesalloc(struct iguana_info *coin,struct iguana_ramchain *ramc if ( ramchain->debitsfileptr != 0 ) { if ( copyflag != 0 ) - memcpy(ramchain->A,(void *)((long)ramchain->debitsfileptr + sizeof(int32_t) + sizeof(bits256)),sizeof(*ramchain->A) * rdata->numpkinds); + memcpy(ramchain->A,(void *)((long)ramchain->debitsfileptr + sizeof(int32_t) + 2*sizeof(bits256)),sizeof(*ramchain->A) * rdata->numpkinds); munmap(ramchain->debitsfileptr,ramchain->debitsfilesize); ramchain->debitsfileptr = 0; ramchain->debitsfilesize = 0; @@ -173,7 +173,7 @@ void iguana_volatilesalloc(struct iguana_info *coin,struct iguana_ramchain *ramc if ( ramchain->lastspendsfileptr != 0 ) { if ( copyflag != 0 ) - memcpy(ramchain->Uextras,(void *)((long)ramchain->lastspendsfileptr + sizeof(int32_t) + sizeof(bits256)),sizeof(*ramchain->Uextras) * rdata->numunspents); + memcpy(ramchain->Uextras,(void *)((long)ramchain->lastspendsfileptr + sizeof(int32_t) + 2*sizeof(bits256)),sizeof(*ramchain->Uextras) * rdata->numunspents); munmap(ramchain->lastspendsfileptr,ramchain->lastspendsfilesize); ramchain->lastspendsfileptr = 0; ramchain->lastspendsfilesize = 0;