Miner module fix
authoralex <alex@alex-VirtualBox.(none)>
Mon, 20 Jan 2014 21:46:52 +0000 (01:46 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Mon, 20 Jan 2014 21:46:52 +0000 (01:46 +0400)
src/miner.cpp

index d5ace13..b7b8db0 100644 (file)
@@ -478,12 +478,13 @@ bool CheckStake(CBlock* pblock, CWallet& wallet)
 {
     uint256 proofHash = 0, hashTarget = 0;
     uint256 hashBlock = pblock->GetHash();
+    bool fFatal = false;
 
     if(!pblock->IsProofOfStake())
         return error("CheckStake() : %s is not a proof-of-stake block", hashBlock.GetHex().c_str());
 
     // verify hash target and signature of coinstake tx
-    if (!CheckProofOfStake(pblock->vtx[1], pblock->nBits, proofHash, hashTarget))
+    if (!CheckProofOfStake(pblock->vtx[1], pblock->nBits, proofHash, hashTarget, fFatal))
         return error("CheckStake() : proof-of-stake checking failed");
 
     //// debug print