diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-03-27 23:00:14 +1000 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-04-15 20:59:13 -0400 |
commit | 3acf0379e0979ea4bdd03976f4987aa6711eb92f (patch) | |
tree | 03f6ae026ba46234871db7ba08f789d67f60620d /src/consensus | |
parent | b529222ad18f7facbaff394455875b4aa65d653e (diff) | |
download | bitcoin-3acf0379e0979ea4bdd03976f4987aa6711eb92f.tar.xz |
versionbits: Add explicit NEVER_ACTIVE deployments
Previously we used deployments that would timeout prior to Bitcoin's
invention, which allowed the deployment to still be activated in unit
tests. This switches those deployments to be truly never active.
Github-Pull: #21377
Rebased-From: 55ac5f568a3b73d6f1ef4654617fb76e8bcbccdf
Diffstat (limited to 'src/consensus')
-rw-r--r-- | src/consensus/params.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index 5d566a01b9..1b1c7f24b6 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -43,6 +43,11 @@ struct BIP9Deployment { * 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; + + /** Special value for nStartTime indicating that the deployment is never active. + * This is useful for integrating the code changes for a new feature + * prior to deploying it on some or all networks. */ + static constexpr int64_t NEVER_ACTIVE = -2; }; /** |