Define dust transaction outputs, and make them non-standard

This commit is contained in:
Gavin Andresen
2013-04-24 18:27:00 -04:00
parent b8e1dc2e53
commit 8de9bb53af
6 changed files with 74 additions and 27 deletions

View File

@@ -384,7 +384,7 @@ bool CTransaction::IsStandard() const
BOOST_FOREACH(const CTxOut& txout, vout) {
if (!::IsStandard(txout.scriptPubKey))
return false;
if (txout.nValue == 0)
if (txout.IsDust())
return false;
}
return true;