mirror of
https://git.hush.is/hush/hush3.git
synced 2025-09-27 00:03:21 -04:00
Fix miner bug
This commit is contained in:
parent
e58b81a475
commit
527ee64eb3
@ -2050,6 +2050,7 @@ void static BitcoinMiner()
|
||||
UpdateTime(pblock, chainparams.GetConsensus(), pindexPrev);
|
||||
HASHTarget.SetCompact(pblock->nBits);
|
||||
hashTarget = HASHTarget;
|
||||
savebits = pblock->nBits;
|
||||
//hashTarget = HASHTarget_POW = komodo_adaptivepow_target(Mining_height,HASHTarget,pblock->nTime);
|
||||
}
|
||||
/*if ( NOTARY_PUBKEY33[0] == 0 )
|
||||
|
@ -112,6 +112,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
|
||||
{
|
||||
bnTarget = easy;
|
||||
fprintf(stderr,"cmp.%d mult.%d ht.%d -> easy target\n",mult>1,(int32_t)mult,(int32_t)pindexLast->GetHeight());
|
||||
return(KOMODO_MINDIFF_NBITS);
|
||||
} else fprintf(stderr,"cmp.%d mult.%d for ht.%d\n",mult>1,(int32_t)mult,(int32_t)pindexLast->GetHeight());
|
||||
nbits = bnTarget.GetCompact();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user