Bitcoin Core  21.99.0
P2P Digital Currency
Functions
versionbits.cpp File Reference
#include <versionbits.h>
#include <consensus/params.h>
Include dependency graph for versionbits.cpp:

Go to the source code of this file.

Functions

ThresholdState VersionBitsState (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos pos, VersionBitsCache &cache)
 Get the BIP9 state for a given deployment at the current tip. More...
 
BIP9Stats VersionBitsStatistics (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos pos)
 Get the numerical statistics for the BIP9 state for a given deployment at the current tip. More...
 
int VersionBitsStateSinceHeight (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos pos, VersionBitsCache &cache)
 Get the block height at which the BIP9 deployment switched into the state for the block building on the current tip. More...
 
uint32_t VersionBitsMask (const Consensus::Params &params, Consensus::DeploymentPos pos)
 

Function Documentation

◆ VersionBitsMask()

uint32_t VersionBitsMask ( const Consensus::Params params,
Consensus::DeploymentPos  pos 
)

Definition at line 208 of file versionbits.cpp.

Here is the caller graph for this function:

◆ VersionBitsState()

ThresholdState VersionBitsState ( const CBlockIndex pindexPrev,
const Consensus::Params params,
Consensus::DeploymentPos  pos,
VersionBitsCache cache 
)

Get the BIP9 state for a given deployment at the current tip.

Definition at line 193 of file versionbits.cpp.

Here is the caller graph for this function:

◆ VersionBitsStateSinceHeight()

int VersionBitsStateSinceHeight ( const CBlockIndex pindexPrev,
const Consensus::Params params,
Consensus::DeploymentPos  pos,
VersionBitsCache cache 
)

Get the block height at which the BIP9 deployment switched into the state for the block building on the current tip.

Definition at line 203 of file versionbits.cpp.

Here is the caller graph for this function:

◆ VersionBitsStatistics()

BIP9Stats VersionBitsStatistics ( const CBlockIndex pindexPrev,
const Consensus::Params params,
Consensus::DeploymentPos  pos 
)

Get the numerical statistics for the BIP9 state for a given deployment at the current tip.

Definition at line 198 of file versionbits.cpp.

Here is the caller graph for this function: