Browse Source

Merge branch 'nozeroout' of git://github.com/sipa/bitcoin

0.8
Gavin Andresen 12 years ago
parent
commit
9db9642db4
  1. 5
      src/main.cpp

5
src/main.cpp

@ -281,9 +281,12 @@ bool CTransaction::IsStandard() const @@ -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…
Cancel
Save