From cfa11fe26af06851ff57e224cb5da9948e20072f Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 1 Aug 2013 02:13:11 +0400 Subject: [PATCH] Treat non-empty coinbase in PoS blocks as DoS attempt --- src/main.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 19d67a9..977a646 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2133,9 +2133,9 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot) const if (IsProofOfStake()) { - // ppcoin: coinbase output should be empty if proof-of-stake block + // Coinbase output should be empty if proof-of-stake block if (vtx[0].vout.size() != 1 || !vtx[0].vout[0].IsEmpty()) - return error("CheckBlock() : coinbase output not empty for proof-of-stake block"); + return DoS(100, error("CheckBlock() : coinbase output not empty for proof-of-stake block")); // Second transaction must be coinstake, the rest must not be if (vtx.empty() || !vtx[1].IsCoinStake()) -- 1.7.1