Merge pull request #2223 from gavinandresen/nonfinalnonstandard

Treat non-final transactions as non-standard
This commit is contained in:
Gavin Andresen 2013-01-28 07:56:58 -08:00
commit f73abdc82d

View File

@ -368,6 +368,9 @@ bool CTransaction::IsStandard() const
if (nVersion > CTransaction::CURRENT_VERSION)
return false;
if (!IsFinal())
return false;
BOOST_FOREACH(const CTxIn& txin, vin)
{
// Biggest 'standard' txin is a 3-signature 3-of-3 CHECKMULTISIG