aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-01-28 07:56:58 -0800
committerGavin Andresen <[email protected]>2013-01-28 07:56:58 -0800
commitf73abdc82dd69c046f7800acd0845002cb20aec5 (patch)
tree955edb93dd9a80ece46619244ae370615a19bbea /src/main.cpp
parentMerge pull request #2162 from gavinandresen/spendfrom (diff)
parentTreat non-final transactions as non-standard (diff)
downloaddiscoin-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.cpp3
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