diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 756f17d10..c445960b1 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -502,6 +502,8 @@ void iguana_coinloop(void *arg) { if ( (coin= coins[i]) != 0 ) { + if ( coin->MAXPEERS > IGUANA_MAXPEERS ) + coin->MAXPEERS = IGUANA_MAXPEERS; if ( coin->started == 0 && coin->active != 0 ) { iguana_rwiAddrind(coin,0,0,0); diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 33bf9c787..2983c9147 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -54,7 +54,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_DEFAULTRAM 4 #define IGUANA_MAXRECVCACHE ((int64_t)1024L * 1024 * 1024L) #define IGUANA_MAXBUNDLES (50000000 / 500) -#define IGUANA_LOG2MAXPEERS 9 +#define IGUANA_LOG2MAXPEERS 10 #define IGUANA_LOG2PACKETSIZE 21 #define IGUANA_LOG2PEERFILESIZE 23 diff --git a/iguana/iguana_init.c b/iguana/iguana_init.c index c78caaeca..a5dab49a0 100755 --- a/iguana/iguana_init.c +++ b/iguana/iguana_init.c @@ -191,6 +191,8 @@ void iguana_parseline(struct iguana_info *coin,int32_t iter,FILE *fp) struct iguana_block *block; memset(&zero,0,sizeof(zero)); lastbundle = zero; + if ( coin->MAXPEERS > IGUANA_MAXPEERS ) + coin->MAXPEERS = IGUANA_MAXPEERS; if ( iter == 1 ) { int32_t i; FILE *fp; char fname[512]; struct iguana_blockRO blockRO;