From: alex Date: Mon, 20 Jan 2014 21:46:52 +0000 (+0400) Subject: Miner module fix X-Git-Tag: v0.4.4.7-nvc-next-testing~14 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=6b190c13546e60f8af14c80bbf6dae28360622dd Miner module fix --- diff --git a/src/miner.cpp b/src/miner.cpp index d5ace13..b7b8db0 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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