From 81db88422571e4b553e434030210b1aa620723ac Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 23 Mar 2016 15:42:25 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 1 + iguana/iguana_ramchain.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 8de74e774..e56340f29 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -545,6 +545,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers, coin->myservices = services; printf("ensure directories\n"); sprintf(dirname,"accounts/%s",symbol), OS_ensure_directory(dirname); + sprintf(dirname,"DB/ro"), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s",symbol), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s/accounts",symbol), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s/spends",symbol), OS_ensure_directory(dirname); diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 0dae823a0..d8c5ba0bb 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1390,7 +1390,7 @@ int32_t iguana_ramchain_extras(struct iguana_info *coin,struct iguana_ramchain * } if ( err == 0 ) { - printf("mapped extra.%s\n",fname); + //printf("mapped extra.%s\n",fname); break; } ramchain->A = 0; @@ -1489,7 +1489,7 @@ struct iguana_ramchain *iguana_ramchain_map(struct iguana_info *coin,char *fname ramchain->H.ROflag = 1; ramchain->expanded = expanded; ramchain->numblocks = (bp == 0) ? 1 : bp->n; - printf("ptr.%p exp.%d extra.%d %p mapped P[%d] fpos.%d + %ld -> %ld vs %ld offset.%u:%u stack.%u:%u\n",ptr,expanded,allocextras,ramchain->H.data,(int32_t)ramchain->H.data->Poffset,(int32_t)fpos,(long)ramchain->H.data->allocsize,(long)(fpos + ramchain->H.data->allocsize),ramchain->filesize,ramchain->H.scriptoffset,ramchain->H.data->scriptspace,ramchain->H.stacksize,ramchain->H.data->stackspace); + //printf("ptr.%p exp.%d extra.%d %p mapped P[%d] fpos.%d + %ld -> %ld vs %ld offset.%u:%u stack.%u:%u\n",ptr,expanded,allocextras,ramchain->H.data,(int32_t)ramchain->H.data->Poffset,(int32_t)fpos,(long)ramchain->H.data->allocsize,(long)(fpos + ramchain->H.data->allocsize),ramchain->filesize,ramchain->H.scriptoffset,ramchain->H.data->scriptspace,ramchain->H.stacksize,ramchain->H.data->stackspace); if ( 0 && bp != 0 ) { /*blocksRO = (struct iguana_blockRO *)ramchain->H.data;