 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_DEPLOYMENTSTATUS_H
6 #define BITCOIN_DEPLOYMENTSTATUS_H
55 #endif // BITCOIN_DEPLOYMENTSTATUS_H
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
ThresholdState State(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos)
Get the BIP9 state for a given deployment for the block after pindexPrev.
CBlockIndex * pprev
pointer to the index of the predecessor of this block
bool DeploymentActiveAfter(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::BuriedDeployment dep)
Determine if a deployment is active for the next block.
int nHeight
height of the entry in the chain. The genesis block has height 0
Parameters that influence chain consensus.
VersionBitsCache g_versionbitscache
Global cache for versionbits deployment status.
bool DeploymentEnabled(const Consensus::Params ¶ms, Consensus::BuriedDeployment dep)
Determine if a deployment is enabled (can ever be active)
bool DeploymentActiveAt(const CBlockIndex &index, const Consensus::Params ¶ms, Consensus::BuriedDeployment dep)
Determine if a deployment is active for this block.
constexpr bool ValidDeployment(BuriedDeployment dep)
static constexpr int64_t NEVER_ACTIVE
Special value for nStartTime indicating that the deployment is never active.
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]
int DeploymentHeight(BuriedDeployment dep) const
BuriedDeployment
A buried deployment is one where the height of the activation has been hardcoded into the client impl...
The block chain is a tree shaped structure starting with the genesis block at the root,...
BIP 9 allows multiple softforks to be deployed in parallel.