Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
74455fea22
  1. 2
      iguana/iguana777.c
  2. 4
      iguana/iguana777.h
  3. 8
      iguana/iguana_ramchain.c

2
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;

4
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)

8
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;

Loading…
Cancel
Save