Skip to content

Commit

Permalink
Treat non-empty coinbase in PoS blocks as DoS attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranz5 committed May 20, 2014
1 parent 032c48c commit c841c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot) const
{
// 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())
Expand Down

0 comments on commit c841c13

Please sign in to comment.