|
|
@ -618,8 +618,11 @@ void static BitcoinMiner(CWallet *pwallet) |
|
|
|
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits); |
|
|
|
if ( ASSETCHAINS_SYMBOL[0] == 0 && komodo_is_special(pindexPrev->nHeight+1,NOTARY_PUBKEY33) > 0 ) |
|
|
|
{ |
|
|
|
hashTarget = arith_uint256().SetCompact(KOMODO_MINDIFF_NBITS); |
|
|
|
fprintf(stderr,"I am the chosen one for %s ht.%d\n",ASSETCHAINS_SYMBOL,pindexPrev->nHeight+1); |
|
|
|
if ( (Mining_height % KOMODO_ELECTION_GAP) > 64 || (Mining_height % KOMODO_ELECTION_GAP) == 0 ) |
|
|
|
{ |
|
|
|
hashTarget = arith_uint256().SetCompact(KOMODO_MINDIFF_NBITS); |
|
|
|
fprintf(stderr,"I am the chosen one for %s ht.%d\n",ASSETCHAINS_SYMBOL,pindexPrev->nHeight+1); |
|
|
|
} else Mining_start = 0; |
|
|
|
} else Mining_start = 0; |
|
|
|
while (true) |
|
|
|
{ |
|
|
|