BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Classes | Typedefs | Enumerations | Functions
versionbits.h File Reference
#include <chain.h>
#include <map>
Include dependency graph for versionbits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BIP9Stats
 
class  AbstractThresholdConditionChecker
 Abstract class that implements BIP9-style threshold logic, and caches results. More...
 
struct  VersionBitsCache
 

Typedefs

typedef std::map< const CBlockIndex *, ThresholdStateThresholdConditionCache
 

Enumerations

enum  ThresholdState {
  ThresholdState::DEFINED, ThresholdState::STARTED, ThresholdState::LOCKED_IN, ThresholdState::ACTIVE,
  ThresholdState::FAILED
}
 

Functions

ThresholdState VersionBitsState (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos pos, VersionBitsCache &cache)
 
BIP9Stats VersionBitsStatistics (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos pos)
 
int VersionBitsStateSinceHeight (const CBlockIndex *pindexPrev, const Consensus::Params &params, Consensus::DeploymentPos pos, VersionBitsCache &cache)
 
uint32_t VersionBitsMask (const Consensus::Params &params, Consensus::DeploymentPos pos)
 

Typedef Documentation

◆ ThresholdConditionCache

Definition at line 31 of file versionbits.h.

Enumeration Type Documentation

◆ ThresholdState

enum ThresholdState
strong
Enumerator
DEFINED 
STARTED 
LOCKED_IN 
ACTIVE 
FAILED 

Definition at line 20 of file versionbits.h.

Function Documentation

◆ VersionBitsMask()

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

Definition at line 195 of file versionbits.cpp.

◆ VersionBitsState()

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

Definition at line 180 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 
)

Definition at line 190 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 
)

Definition at line 185 of file versionbits.cpp.

Here is the caller graph for this function: