diff --git a/iguana/iguana777.h b/iguana/iguana777.h index b079b9466..60fc5be11 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -38,8 +38,8 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 #define _IGUANA_MAXPENDING 8 -#define IGUANA_MINPENDBUNDLES 100 -#define IGUANA_MAXPENDBUNDLES 128 +#define IGUANA_MINPENDBUNDLES 200 +#define IGUANA_MAXPENDBUNDLES 200 #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 c306d92ad..8648997dd 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1250,7 +1250,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin) { if ( bits256_nonz(next->RO.prev_block) > 0 ) _iguana_chainlink(coin,next); - else if ( next->queued == 0 && next->fpipbits == 0 ) + else if ( next->queued == 0 && next->fpipbits == 0 && (rand() % 100) == 0 ) { printf("HWM next %d\n",coin->blocks.hwmchain.height+1); iguana_blockQ(coin,bp,bundlei,next->RO.hash2,0); @@ -1263,12 +1263,12 @@ int32_t iguana_reqblocks(struct iguana_info *coin) printf("next %d\n",coin->blocks.hwmchain.height+1); iguana_blockQ(coin,bp,bundlei,bp->hashes[bundlei],0); } - else*/ if ( bp->speculative != 0 && bits256_cmp(bp->hashes[bundlei],bp->speculative[bundlei]) != 0 ) + else*/ if ( bp->speculative != 0 && (bits256_cmp(bp->hashes[bundlei],bp->speculative[bundlei]) != 0 || (rand() % 100) == 0) ) { if ( iguana_blockfind(coin,bp->speculative[bundlei]) == 0 ) { bp->hashes[bundlei] = bp->speculative[bundlei]; - printf("speculative next %d\n",coin->blocks.hwmchain.height+1); + //printf("speculative next %d\n",coin->blocks.hwmchain.height+1); iguana_blockQ(coin,0,-1,bp->speculative[bundlei],0); } }