Bitcoin Core  22.99.0
P2P Digital Currency
Functions | Variables
deploymentstatus.h File Reference
#include <chain.h>
#include <versionbits.h>
#include <limits>
Include dependency graph for deploymentstatus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool DeploymentActiveAfter (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::BuriedDeployment dep)
 Determine if a deployment is active for the next block. More...
 
bool DeploymentActiveAfter (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos dep)
 
bool DeploymentActiveAt (const CBlockIndex &index, const Consensus::Params &params, Consensus::BuriedDeployment dep)
 Determine if a deployment is active for this block. More...
 
bool DeploymentActiveAt (const CBlockIndex &index, const Consensus::Params &params, Consensus::DeploymentPos dep)
 
bool DeploymentEnabled (const Consensus::Params &params, Consensus::BuriedDeployment dep)
 Determine if a deployment is enabled (can ever be active) More...
 
bool DeploymentEnabled (const Consensus::Params &params, Consensus::DeploymentPos dep)
 

Variables

VersionBitsCache g_versionbitscache
 Global cache for versionbits deployment status. More...
 

Function Documentation

◆ DeploymentActiveAfter() [1/2]

bool DeploymentActiveAfter ( const CBlockIndex pindexPrev,
const Consensus::Params params,
Consensus::BuriedDeployment  dep 
)
inline

Determine if a deployment is active for the next block.

Definition at line 17 of file deploymentstatus.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeploymentActiveAfter() [2/2]

bool DeploymentActiveAfter ( const CBlockIndex pindexPrev,
const Consensus::Params params,
Consensus::DeploymentPos  dep 
)
inline

Definition at line 23 of file deploymentstatus.h.

Here is the call graph for this function:

◆ DeploymentActiveAt() [1/2]

bool DeploymentActiveAt ( const CBlockIndex index,
const Consensus::Params params,
Consensus::BuriedDeployment  dep 
)
inline

Determine if a deployment is active for this block.

Definition at line 30 of file deploymentstatus.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeploymentActiveAt() [2/2]

bool DeploymentActiveAt ( const CBlockIndex index,
const Consensus::Params params,
Consensus::DeploymentPos  dep 
)
inline

Definition at line 36 of file deploymentstatus.h.

Here is the call graph for this function:

◆ DeploymentEnabled() [1/2]

bool DeploymentEnabled ( const Consensus::Params params,
Consensus::BuriedDeployment  dep 
)
inline

Determine if a deployment is enabled (can ever be active)

Definition at line 43 of file deploymentstatus.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeploymentEnabled() [2/2]

bool DeploymentEnabled ( const Consensus::Params params,
Consensus::DeploymentPos  dep 
)
inline

Definition at line 49 of file deploymentstatus.h.

Here is the call graph for this function:

Variable Documentation

◆ g_versionbitscache

VersionBitsCache g_versionbitscache

Global cache for versionbits deployment status.

Definition at line 12 of file deploymentstatus.cpp.