5 #ifndef BITCOIN_DEPLOYMENTSTATUS_H 6 #define BITCOIN_DEPLOYMENTSTATUS_H 23 return versionbitscache.
IsActiveAfter(pindexPrev, params, dep);
52 #endif // BITCOIN_DEPLOYMENTSTATUS_H std::array< BIP9Deployment, MAX_VERSION_BITS_DEPLOYMENTS > vDeployments
CBlockIndex * pprev
pointer to the index of the predecessor of this block
bool DeploymentActiveAfter(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::BuriedDeployment dep, [[maybe_unused]] VersionBitsCache &versionbitscache)
Determine if a deployment is active for the next block.
bool DeploymentActiveAt(const CBlockIndex &index, const Consensus::Params ¶ms, Consensus::BuriedDeployment dep, [[maybe_unused]] VersionBitsCache &versionbitscache)
Determine if a deployment is active for this block.
bool DeploymentEnabled(const Consensus::Params ¶ms, Consensus::BuriedDeployment dep)
Determine if a deployment is enabled (can ever be active)
int DeploymentHeight(BuriedDeployment dep) const
static constexpr int64_t NEVER_ACTIVE
Special value for nStartTime indicating that the deployment is never active.
Parameters that influence chain consensus.
BIP 9 allows multiple softforks to be deployed in parallel.
The block chain is a tree shaped structure starting with the genesis block at the root...
int nHeight
height of the entry in the chain. The genesis block has height 0
BuriedDeployment
A buried deployment is one where the height of the activation has been hardcoded into the client impl...
constexpr bool ValidDeployment(BuriedDeployment dep)
bool IsActiveAfter(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
Get the BIP9 state for a given deployment for the block after pindexPrev.