mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Block with invalid signature is corruption-possible
This commit is contained in:
parent
db42a26b72
commit
25eb07e59b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue