diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 5e03140ec..f03d2c9dc 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1304,7 +1304,7 @@ int64_t iguana_ramchain_init(struct iguana_ramchain *ramchain,struct OS_memspace printf("offset.%ld scriptspace.%d allocsize.%ld vs memsize.%ld\n",(long)offset,scriptspace,(long)rdata->allocsize,(long)iguana_ramchain_size(RAMCHAIN_ARG,numblocks,scriptspace)); exit(-1); } - if ( offset < mem->totalsize ) + if ( offset <= mem->totalsize ) iguana_memreset(mem); else {