|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|