diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 859acbcc2..7be3b6e37 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -42,7 +42,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_HEADPERCENTAGE 0. #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 -#define IGUANA_MAXPENDINGREQUESTS 64 +#define IGUANA_MAXPENDINGREQUESTS 3 #define IGUANA_PENDINGREQUESTS 512 #define IGUANA_MINPENDBUNDLES 2 #define IGUANA_MAXPENDBUNDLES 32 diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index ad915d065..5541e46a0 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1245,7 +1245,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag) if ( bp->durationscount != 0 ) aveduration = (double)bp->totaldurations / bp->durationscount; else aveduration = IGUANA_DEFAULTLAG/3 + 1; - if ( 0 && (n= iguana_bundlerequests(coin,missings,&tmp,&tmp2,2.,bp,1)) > 0 ) + if ( (n= iguana_bundlerequests(coin,missings,&tmp,&tmp2,2.,bp,3)) > 0 ) printf("issued %d priority requests [%d] to unstick stuckiters.%d lag.%d\n",n,bp->hdrsi,coin->stuckiters,lag); //else printf("no bundlerequests issued\n"); }