From 1c8a3f0abb72ff9b37343860e56e2ee7ff7eefad Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 13 Mar 2016 18:48:48 -0300 Subject: [PATCH] test --- iguana/iguana777.h | 2 +- iguana/iguana_recv.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 60fc5be11..c143fc8db 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -39,7 +39,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_MAXPENDHDRS 1 #define _IGUANA_MAXPENDING 8 #define IGUANA_MINPENDBUNDLES 200 -#define IGUANA_MAXPENDBUNDLES 200 +#define IGUANA_MAXPENDBUNDLES 128 #define IGUANA_BUNDLELOOP 10000 #define IGUANA_RPCPORT 7778 #define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 8648997dd..17d1e8825 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -583,6 +583,8 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int bp->emitfinish = 1; if ( coin->MAXBUNDLES > IGUANA_MINPENDBUNDLES ) coin->MAXBUNDLES--; + else if ( coin->MAXBUNDLES < IGUANA_MINPENDBUNDLES ) + coin->MAXBUNDLES++; sleep(1); iguana_emitQ(coin,bp); iguana_bundleQ(coin,bp,width);