aboutsummaryrefslogtreecommitdiff
path: root/src/policy/policy.h
diff options
context:
space:
mode:
authorMark Friedenbach <mark@friedenbach.org>2015-06-03 15:01:47 -0700
committerMark Friedenbach <mark@friedenbach.org>2015-10-23 09:02:24 -0700
commitdea8d21fc63e9f442299c97010e4740558f4f037 (patch)
treea8a524a4a9f925d263400720a34cbfe4edd4b218 /src/policy/policy.h
parent9d55050773d57c0e12005e524f2e54d9e622c6e2 (diff)
Enable policy enforcing GetMedianTimePast as the end point of lock-time constraints
Transactions are not allowed in the memory pool or selected for inclusion in a block until their lock times exceed chainActive.Tip()->GetMedianTimePast(). However blocks including transactions which are only mature under the old rules are still accepted; this is *not* the soft-fork required to actually rely on the new constraint in production.
Diffstat (limited to 'src/policy/policy.h')
-rw-r--r--src/policy/policy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index cfe6a40526..7027f1402f 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -44,7 +44,7 @@ static const unsigned int STANDARD_SCRIPT_VERIFY_FLAGS = MANDATORY_SCRIPT_VERIFY
static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS;
/** Used as the flags parameter to CheckFinalTx() in non-consensus code */
-static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = 0;
+static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = LOCKTIME_MEDIAN_TIME_PAST;
bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType);
/**