mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Define dust transaction outputs, and make them non-standard
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user