From c223066667250e2da84ebeda4be8e8985c43ca25 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 3 Apr 2016 01:25:54 -0600 Subject: [PATCH] test --- iguana/iguana777.h | 4 ++-- iguana/iguana_bundles.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index c79ab5c09..364e7f0d8 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -26,7 +26,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_SERIALIZE_SPENDVECTORGEN //#define IGUANA_DISABLEPEERS #define _IGUANA_MAXSTUCKTIME 30 -#define IGUANA_MAXITERATIONS 100 +#define IGUANA_MAXITERATIONS 1000 #define IGUANA_DEFAULTLAG 30 #define IGUANA_MAXCOINS 64 @@ -42,7 +42,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 #define IGUANA_MAXPENDINGREQUESTS 2 -#define IGUANA_PENDINGREQUESTS 16 +#define IGUANA_PENDINGREQUESTS 2 #define IGUANA_MINPENDBUNDLES 2 #define IGUANA_MAXPENDBUNDLES 256 #define IGUANA_RPCPORT 7778 diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 15f3568d5..2c5433e8d 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -945,7 +945,7 @@ double iguana_bundlemissings(struct iguana_info *coin,struct iguana_bundle *bp,d else max = bp->origmissings; if ( coin->current != 0 ) { - if ( (dist= bp->hdrsi - coin->current->hdrsi) < coin->MAXBUNDLES && (bp == coin->current || netBLOCKS < bp->n) ) + if ( (dist= bp->hdrsi - coin->current->hdrsi) < coin->MAXBUNDLES && netBLOCKS < bp->n ) { iguana_unstickhdr(coin,bp,60); if ( bp->numcached > bp->n - (coin->MAXBUNDLES - dist) )