diff options
| author | Gavin Andresen <[email protected]> | 2013-01-28 07:56:58 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-01-28 07:56:58 -0800 |
| commit | f73abdc82dd69c046f7800acd0845002cb20aec5 (patch) | |
| tree | 955edb93dd9a80ece46619244ae370615a19bbea /src/main.cpp | |
| parent | Merge pull request #2162 from gavinandresen/spendfrom (diff) | |
| parent | Treat non-final transactions as non-standard (diff) | |
| download | discoin-f73abdc82dd69c046f7800acd0845002cb20aec5.tar.xz discoin-f73abdc82dd69c046f7800acd0845002cb20aec5.zip | |
Merge pull request #2223 from gavinandresen/nonfinalnonstandard
Treat non-final transactions as non-standard
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0c9e43a9b..fe35fbaf2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 |