mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 13:04:17 +00:00
Make 0-value outputs non-standard
This commit is contained in:
parent
c68c4bc7a4
commit
65ce215641
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user