From 74455fea22a4b2c564521808810cdf67a3b5a80b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 14 Mar 2016 02:11:22 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana777.h | 4 ++-- iguana/iguana_ramchain.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 9f7f64691..2095309e1 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -311,7 +311,7 @@ int32_t iguana_helpertask(FILE *fp,struct OS_memspace *mem,struct OS_memspace *m { if ( iguana_bundlesaveHT(coin,mem,memB,bp,ptr->starttime) == 0 ) { - fprintf(stderr,"emitQ coin.%p bp.[%d]\n",ptr->coin,bp->bundleheight); + //fprintf(stderr,"emitQ coin.%p bp.[%d]\n",ptr->coin,bp->bundleheight); bp->emitfinish = (uint32_t)time(NULL) + 1; coin->numemitted++; } else bp->emitfinish = 0; diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 8b736fae4..dd5a2900d 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -38,8 +38,8 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 #define _IGUANA_MAXPENDING 16 -#define IGUANA_MINPENDBUNDLES 1 //64 -#define IGUANA_MAXPENDBUNDLES 1 //128 +#define IGUANA_MINPENDBUNDLES 64 +#define IGUANA_MAXPENDBUNDLES 128 #define IGUANA_BUNDLELOOP 10000 #define IGUANA_RPCPORT 7778 #define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 22977ebec..2b6e672ff 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1306,7 +1306,7 @@ int32_t iguana_Xspendmap(struct iguana_info *coin,struct iguana_ramchain *ramcha munmap(ptr,filesize); ramchain->Xspendinds = 0; } - } else printf("no Xspendfile\n"); + } //else printf("no Xspendfile\n"); } else printf("couldnt open.(%s)\n",fname); return(ramchain->numXspends); } @@ -2122,7 +2122,7 @@ struct iguana_ramchain *iguana_bundleload(struct iguana_info *coin,struct iguana } else { - printf("couldnt load bundle.%d\n",bp->bundleheight); + //printf("couldnt load bundle.%d\n",bp->bundleheight); memset(&bp->ramchain,0,sizeof(bp->ramchain)); } if ( mapchain != 0 ) @@ -2322,9 +2322,9 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str } sprintf(dirname,"%s/%s/%d",GLOBALTMPDIR,coin->symbol,bp->bundleheight), OS_portable_rmdir(dirname,1); //bp->ramchain = newchain; - printf("load bundle.%d\n",bp->bundleheight); + //printf("load bundle.%d\n",bp->bundleheight); iguana_bundleload(coin,&newchain,bp); - printf("loaded bundle.%d data.%p\n",bp->bundleheight,newchain.H.data); + //printf("loaded bundle.%d data.%p\n",bp->bundleheight,newchain.H.data); } iguana_ramchain_free(dest,0); bp->ramchain = newchain;