From: alex Date: Wed, 31 Jul 2013 22:13:11 +0000 (+0400) Subject: Treat non-empty coinbase in PoS blocks as DoS attempt X-Git-Tag: v0.4.4-nvc~7 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=cfa11fe26af06851ff57e224cb5da9948e20072f Treat non-empty coinbase in PoS blocks as DoS attempt --- 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())