diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 3514ff689..52b4280d7 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -431,7 +431,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct } else { - char str[65]; printf("blockhashes[%d] %s\n",num,bits256_str(str,blockhashes[1])); + //char str[65]; printf("blockhashes[%d] %s\n",num,bits256_str(str,blockhashes[1])); iguana_blockQ(coin,0,-1,blockhashes[1],1); for (i=coin->chain->bundlesize; inumhashes < bp->n ) { - printf("%s request hdr.(%s)\n",addr!=0?addr->ipaddr:"local",hashstr); + printf("%s request hdr.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp->numhashes); iguana_send(coin,addr,serialized,datalen); addr->pendhdrs++; flag++; diff --git a/iguana/main.c b/iguana/main.c index 090192ecc..ec21ed7b4 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -35,7 +35,7 @@ uint64_t IGUANA_MY64BITS; queue_t helperQ,jsonQ,finishedQ; static int32_t initflag; #ifdef __linux__ -int32_t IGUANA_NUMHELPERS = 1; +int32_t IGUANA_NUMHELPERS = 4; #else int32_t IGUANA_NUMHELPERS = 1; #endif @@ -310,7 +310,7 @@ void iguana_main(void *arg) helperargs = clonestr(helperstr); iguana_launch(iguana_coinadd("BTCD"),"iguana_helper",iguana_helper,helperargs,IGUANA_PERMTHREAD); } - //iguana_launch(iguana_coinadd("BTCD"),"rpcloop",iguana_rpcloop,iguana_coinadd("BTCD"),IGUANA_PERMTHREAD); + iguana_launch(iguana_coinadd("BTCD"),"rpcloop",iguana_rpcloop,iguana_coinadd("BTCD"),IGUANA_PERMTHREAD); if ( coinargs != 0 ) iguana_launch(iguana_coinadd("BTCD"),"iguana_coins",iguana_coins,coinargs,IGUANA_PERMTHREAD); else if ( 1 )