From 66245c1ded837b151ebb90304205e0a6129c2cae Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Sep 2016 09:27:11 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_ramchain.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index fe64d58c3..f1ccaca5e 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -176,7 +176,7 @@ int32_t iguana_peermetrics(struct supernet_info *myinfo,struct iguana_info *coin } coin->peers->numranked = n; portable_mutex_unlock(&coin->peers_mutex); - printf("peer metrics NUMRANKED.%d\n",n); + //printf("peer metrics NUMRANKED.%d\n",n); if ( i > 0 ) { coin->peers->avemetric = (sum / i); diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 08016d754..322a36d7c 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -1999,10 +1999,10 @@ void iguana_blockdelete(struct iguana_info *coin,bits256 hash2,int32_t i) if ( fname[0] != 0 ) { OS_removefile(fname,0); -#ifndef WIN32 +/*#ifndef WIN32 strcat(fname,".tmp"); OS_removefile(fname,0); -#endif +#endif*/ } } @@ -2087,7 +2087,7 @@ int32_t iguana_oldbundlefiles(struct iguana_info *coin,uint32_t *ipbits,void **p void *iguana_bundlefile(struct iguana_info *coin,char *fname,long *filesizep,struct iguana_bundle *bp,int32_t bundlei,int32_t renameflag) { - int32_t checki,hdrsi; long checksize; void *ptr = 0; FILE *fp; static const bits256 zero; char renamed[1024]; + int32_t checki,hdrsi; long checksize; void *ptr = 0; FILE *fp; static const bits256 zero; //char renamed[1024]; *filesizep = 0; fname[0] = 0; if ( (checki= iguana_peerfname(coin,&hdrsi,GLOBAL_TMPDIR,fname,0,bp->hashes[bundlei],zero,1,1)) != bundlei || bundlei < 0 || bundlei >= coin->chain->bundlesize ) @@ -2102,14 +2102,14 @@ void *iguana_bundlefile(struct iguana_info *coin,char *fname,long *filesizep,str fseek(fp,0,SEEK_END); checksize = ftell(fp); fclose(fp); -//#ifndef WIN32 +/*#ifndef WIN32 if ( renameflag != 0 ) { sprintf(renamed,"%s.tmp",fname); OS_copyfile(fname,renamed,1); strcpy(fname,renamed); } -//#endif +//#endif*/ if ( (ptr= OS_mapfile(fname,filesizep,0)) == 0 ) { printf("error mapping.(%s) bundlei.%d\n",fname,bundlei);