Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
2228fdba38
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_recv.c
  3. 2
      includes/iguana_defines.h

2
iguana/iguana777.c

@ -706,7 +706,7 @@ void iguana_helper(void *arg)
allcurrent = 0;
//printf("h.%d [%d] bundleQ size.%d lag.%ld\n",helperid,bp->hdrsi,queue_size(&bundlesQ),time(NULL) - bp->nexttime);
coin->numbundlesQ--;
if ( coin->started != 0 && time(NULL) > bp->nexttime && coin->active != 0 )
if ( coin->started != 0 && time(NULL) >= bp->nexttime && coin->active != 0 )
{
flag += iguana_bundleiters(myinfo,ptr->coin,&MEM,MEMB,bp,ptr->timelimit,IGUANA_DEFAULTLAG);
}

2
iguana/iguana_recv.c

@ -725,7 +725,7 @@ int32_t iguana_bundlehashadd(struct iguana_info *coin,struct iguana_bundle *bp,i
size = sizeof(blockR);
iguana_ramchain_free(coin,&blockR,1);
}
else if ( bp->hdrsi > 0 && bp->hdrsi == coin->longestchain/bp->n )
else //if ( bp->hdrsi > 0 && bp->hdrsi == coin->longestchain/bp->n )
{
checki = iguana_peerfname(coin,&hdrsi,GLOBAL_TMPDIR,fname,0,block->RO.hash2,zero,1,0);
if ( (fp= fopen(fname,"rb")) != 0 )

2
includes/iguana_defines.h

@ -44,7 +44,7 @@
#define IGUANA_HEADPERCENTAGE 0.
#define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1
#define IGUANA_MAXPENDINGREQUESTS 3
#define IGUANA_MAXPENDINGREQUESTS 32
#define IGUANA_PENDINGREQUESTS 64
#define IGUANA_MINPENDBUNDLES 4
#define IGUANA_MAXPENDBUNDLES 64

Loading…
Cancel
Save