Skip to content
Permalink
Browse files

Mark blocks with too many sigops as failed

Github-Pull: #7217
Rebased-From: 5246180
  • Loading branch information
sdaftuar authored and laanwj committed Jan 5, 2016
1 parent 3cb066c commit e08b7cb33ca30e03a4fda2eb13fc101628907258
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.cpp
@@ -2978,7 +2978,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW, bo
}
if (nSigOps > MAX_BLOCK_SIGOPS)
return state.DoS(100, error("CheckBlock(): out-of-bounds SigOpCount"),
REJECT_INVALID, "bad-blk-sigops", true);
REJECT_INVALID, "bad-blk-sigops");

if (fCheckPOW && fCheckMerkleRoot)
block.fChecked = true;

0 comments on commit e08b7cb

Please sign in to comment.
You can’t perform that action at this time.