|
|
@ -987,8 +987,6 @@ int32_t iguana_reqblocks(struct iguana_info *coin) |
|
|
|
} |
|
|
|
} |
|
|
|
if ( bits256_nonz(hash2) > 0 ) |
|
|
|
{ |
|
|
|
if ( bp != 0 && bits256_nonz(hash2) > 0 ) |
|
|
|
{ |
|
|
|
coin->backstopmillis = OS_milliseconds(); |
|
|
|
iguana_blockQ("mainchain",coin,0,-1,hash2,lag > 100 * threshold); |
|
|
@ -997,13 +995,12 @@ int32_t iguana_reqblocks(struct iguana_info *coin) |
|
|
|
if ( 1 && (rand() % 1000) == 0 || bp->bundleheight > coin->longestchain-coin->chain->bundlesize ) |
|
|
|
printf("%s MAINCHAIN.%d threshold %.3f %.3f lag %.3f\n",bits256_str(str,hash2),coin->blocks.hwmchain.height+1,threshold,coin->backstopmillis,lag); |
|
|
|
} |
|
|
|
} |
|
|
|
else if ( bp != 0 && bundlei < bp->n-1 && (bits256_nonz(bp->hashes[bundlei+1]) != 0 || (bp->speculative != 0 && bits256_nonz(bp->speculative[bundlei+1]) != 0)) ) |
|
|
|
{ |
|
|
|
if ( time(NULL) > bp->issued[bundlei+1]+10 ) |
|
|
|
{ |
|
|
|
bp->issued[bundlei+1] = (uint32_t)time(NULL); |
|
|
|
printf("MAINCHAIN skip issue %d\n",bundlei+1); |
|
|
|
printf("MAINCHAIN skip issue %d\n",bp->bundleheight+bundlei+1); |
|
|
|
if ( bits256_nonz(bp->hashes[bundlei+1]) != 0 ) |
|
|
|
iguana_blockQ("mainskip",coin,bp,bundlei,bp->hashes[bundlei+1],0); |
|
|
|
else if ( bp->speculative != 0 && bundlei+1 < bp->numspec ) |
|
|
|