Block with invalid signature is corruption-possible

This commit is contained in:
Matt Corallo 2016-03-20 00:14:03 -07:00 committed by Gregory Sanders
parent db42a26b72
commit 25eb07e59b

View file

@ -2832,7 +2832,7 @@ bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, const
// Check proof of work matches claimed amount
if (fCheckPOW && !CheckProof(block, Params().GetConsensus()))
return state.DoS(50, error("CheckBlockHeader(): proof of work failed"),
REJECT_INVALID, "high-hash");
REJECT_INVALID, "high-hash", true);
// Check timestamp
if (block.GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)