diff options
Diffstat (limited to 'src/consensus/consensus.h')
-rw-r--r-- | src/consensus/consensus.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h index f937844e9f..fc2d01f917 100644 --- a/src/consensus/consensus.h +++ b/src/consensus/consensus.h @@ -13,4 +13,13 @@ static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; /** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */ static const int COINBASE_MATURITY = 100; +/** Flags for LockTime() */ +enum { + /* Use GetMedianTimePast() instead of nTime for end point timestamp. */ + LOCKTIME_MEDIAN_TIME_PAST = (1 << 1), +}; + +/** Used as the flags parameter to CheckFinalTx() in non-consensus code */ +static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = LOCKTIME_MEDIAN_TIME_PAST; + #endif // BITCOIN_CONSENSUS_CONSENSUS_H |