aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-03-06 18:18:49 +1000
committerAndrew Chow <achow101-github@achow101.com>2021-04-15 12:03:27 -0400
commit4cab84cfdfc98cd10462681b5eb0fbbc08afd2a7 (patch)
tree5161469f332752ee172989c7012ad85741950cd9 /src/consensus
parentf9517e6014ccfe91d5a77e2bacca928bdce7c285 (diff)
downloadbitcoin-4cab84cfdfc98cd10462681b5eb0fbbc08afd2a7.tar.xz
versionbits: Add support for delayed activation
Github-Pull: #21377 Rebased-From: 73d4a706393e6dbd6b6d6b6428f8d3233ac0a2d8
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/params.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h
index 0983595c6a..5d566a01b9 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -29,6 +29,11 @@ struct BIP9Deployment {
int64_t nStartTime;
/** Timeout/expiry MedianTime for the deployment attempt. */
int64_t nTimeout;
+ /** If lock in occurs, delay activation until at least this block
+ * height. Note that activation will only occur on a retarget
+ * boundary.
+ */
+ int min_activation_height{0};
/** Constant for nTimeout very far in the future. */
static constexpr int64_t NO_TIMEOUT = std::numeric_limits<int64_t>::max();