diff options
| author | Alex Morcos <[email protected]> | 2015-12-07 15:44:16 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2016-02-10 15:35:33 -0500 |
| commit | c6c2f0fd782ccf607027414012f45c8f48561a30 (patch) | |
| tree | 851d2b78c132cf851fafb35b6d62b7bf8f562ac6 /src/policy | |
| parent | Merge pull request #6589 (diff) | |
| download | discoin-c6c2f0fd782ccf607027414012f45c8f48561a30.tar.xz discoin-c6c2f0fd782ccf607027414012f45c8f48561a30.zip | |
Implement SequenceLocks functions
SequenceLocks functions are used to evaluate sequence lock times or heights per BIP 68.
The majority of this code is copied from maaku in #6312
Further credit: btcdrak, sipa, NicolasDorier
Diffstat (limited to 'src/policy')
| -rw-r--r-- | src/policy/policy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 31655f2f3..5034b2386 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -45,8 +45,9 @@ static const unsigned int STANDARD_SCRIPT_VERIFY_FLAGS = MANDATORY_SCRIPT_VERIFY /** For convenience, standard but not mandatory verify flags. */ 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 = LOCKTIME_MEDIAN_TIME_PAST; +/** Used as the flags parameter to LockTime() in non-consensus code. */ +static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = LOCKTIME_VERIFY_SEQUENCE | + LOCKTIME_MEDIAN_TIME_PAST; bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType); /** |