Struct for each individual consensus rule change using BIP9.
More...
#include <params.h>
|
int | bit {28} |
| Bit position to select the particular bit in nVersion. More...
|
|
int64_t | nStartTime {NEVER_ACTIVE} |
| Start MedianTime for version bits miner confirmation. More...
|
|
int64_t | nTimeout {NEVER_ACTIVE} |
| Timeout/expiry MedianTime for the deployment attempt. More...
|
|
int | min_activation_height {0} |
| If lock in occurs, delay activation until at least this block height. More...
|
|
uint32_t | period {2016} |
| Period of blocks to check signalling in (usually retarget period, ie params.DifficultyAdjustmentInterval()) More...
|
|
uint32_t | threshold {1916} |
| Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period, which is also used for BIP9 deployments. More...
|
|
|
static constexpr int64_t | NO_TIMEOUT = std::numeric_limits<int64_t>::max() |
| Constant for nTimeout very far in the future. More...
|
|
static constexpr int64_t | ALWAYS_ACTIVE = -1 |
| Special value for nStartTime indicating that the deployment is always active. More...
|
|
static constexpr int64_t | NEVER_ACTIVE = -2 |
| Special value for nStartTime indicating that the deployment is never active. More...
|
|
Struct for each individual consensus rule change using BIP9.
Definition at line 44 of file params.h.
◆ ALWAYS_ACTIVE
constexpr int64_t Consensus::BIP9Deployment::ALWAYS_ACTIVE = -1 |
|
staticconstexpr |
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.
Definition at line 72 of file params.h.
◆ bit
int Consensus::BIP9Deployment::bit {28} |
Bit position to select the particular bit in nVersion.
Definition at line 46 of file params.h.
◆ min_activation_height
int Consensus::BIP9Deployment::min_activation_height {0} |
If lock in occurs, delay activation until at least this block height.
Note that activation will only occur on a retarget boundary.
Definition at line 55 of file params.h.
◆ NEVER_ACTIVE
constexpr int64_t Consensus::BIP9Deployment::NEVER_ACTIVE = -2 |
|
staticconstexpr |
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.
Definition at line 77 of file params.h.
◆ NO_TIMEOUT
constexpr int64_t Consensus::BIP9Deployment::NO_TIMEOUT = std::numeric_limits<int64_t>::max() |
|
staticconstexpr |
Constant for nTimeout very far in the future.
Definition at line 66 of file params.h.
◆ nStartTime
int64_t Consensus::BIP9Deployment::nStartTime {NEVER_ACTIVE} |
Start MedianTime for version bits miner confirmation.
Can be a date in the past
Definition at line 48 of file params.h.
◆ nTimeout
Timeout/expiry MedianTime for the deployment attempt.
Definition at line 50 of file params.h.
◆ period
uint32_t Consensus::BIP9Deployment::period {2016} |
Period of blocks to check signalling in (usually retarget period, ie params.DifficultyAdjustmentInterval())
Definition at line 57 of file params.h.
◆ threshold
uint32_t Consensus::BIP9Deployment::threshold {1916} |
Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period, which is also used for BIP9 deployments.
Examples: 1916 for 95%, 1512 for testchains.
Definition at line 63 of file params.h.
The documentation for this struct was generated from the following file: