Mark blocks with too many sigops as failed

Github-Pull: #7217
Rebased-From: 5246180f168c9b761b6158b0725f5718239ba66c
This commit is contained in:
Suhas Daftuar 2015-12-15 15:40:50 -05:00 committed by Wladimir J. van der Laan
parent 3cb066c62b
commit e08b7cb33c
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

View File

@ -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;