Merge pull request #161 from instagibbs/highash

give more accurate message for invalid block proof
This commit is contained in:
Gregory Sanders 2017-04-19 18:57:31 -04:00 committed by GitHub
commit cdb548a07e

View file

@ -4201,8 +4201,8 @@ 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", true);
return state.DoS(50, error("CheckBlockHeader(): block proof invalid"),
REJECT_INVALID, "block-proof-invalid", true);
// Check timestamp
if (block.GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)