mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge pull request #161 from instagibbs/highash
give more accurate message for invalid block proof
This commit is contained in:
commit
cdb548a07e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue