From 4739095d0f1acf23d51c55bdb70689cc7b5afc27 Mon Sep 17 00:00:00 2001 From: miketout Date: Thu, 4 Oct 2018 01:01:29 -0700 Subject: [PATCH] Fix comparison --- src/pow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index e043e542c..6ac54098e 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -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