Fix comparison

This commit is contained in:
miketout
2018-10-04 01:01:29 -07:00
parent 00a7120e90
commit 4739095d0f

View File

@@ -466,7 +466,7 @@ CChainPower GetBlockProof(const CBlockIndex& block)
else
{
bnStakeTarget.SetCompact(header.GetVerusPOSTarget(), &fNegative, &fOverflow);
if (fNegative || fOverflow || bnWorkTarget == 0)
if (fNegative || fOverflow || bnStakeTarget == 0)
return CChainPower(0);
// as the nonce has a fixed definition for a POS block, add the random amount of "work" from the nonce, so there will
// statistically always be a deterministic winner in POS