diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 04c41005e..03e61646a 100755 --- a/iguana/iguana777.c +++ b/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); } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 2b3532ca9..f32b100c1 100755 --- a/iguana/iguana_recv.c +++ b/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 ) diff --git a/includes/iguana_defines.h b/includes/iguana_defines.h index 3a15c012e..2cfe9677b 100755 --- a/includes/iguana_defines.h +++ b/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