diff options
| author | Pieter Wuille <[email protected]> | 2017-10-11 20:25:05 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-11-06 19:19:10 -0800 |
| commit | d07ee77ab9e62560c8bbd167207d42aa7686cd7a (patch) | |
| tree | c4e3e5c1620f3fc22bbb5fb04587385537347731 /src/consensus | |
| parent | [consensus] Pin P2SH activation to block 173805 on mainnet (diff) | |
| download | discoin-d07ee77ab9e62560c8bbd167207d42aa7686cd7a.tar.xz discoin-d07ee77ab9e62560c8bbd167207d42aa7686cd7a.zip | |
Always-active versionbits support
Diffstat (limited to 'src/consensus')
| -rw-r--r-- | src/consensus/params.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index 0bdf83820..fd0946a61 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -35,6 +35,12 @@ struct BIP9Deployment { /** Constant for nTimeout very far in the future. */ static constexpr int64_t NO_TIMEOUT = std::numeric_limits<int64_t>::max(); + + /** Special value for nStartTime indicating that the deployment is always active. + * This is useful for testing, as it means tests don't need to deal with the activation + * process (which takes at least 3 BIP9 intervals). Only tests that specifically test the + * behaviour during activation cannot use this. */ + static constexpr int64_t ALWAYS_ACTIVE = -1; }; /** |