mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-20 12:39:47 +01:00
Make 0-value outputs non-standard
This commit is contained in:
@@ -281,9 +281,12 @@ bool CTransaction::IsStandard() const
|
||||
if (!txin.scriptSig.IsPushOnly())
|
||||
return false;
|
||||
}
|
||||
BOOST_FOREACH(const CTxOut& txout, vout)
|
||||
BOOST_FOREACH(const CTxOut& txout, vout) {
|
||||
if (!::IsStandard(txout.scriptPubKey))
|
||||
return false;
|
||||
if (txout.nValue == 0)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user