Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Typedefs | Enumerations | Functions | Variables
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  VBDeploymentInfo
 
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 {
  THRESHOLD_DEFINED, THRESHOLD_STARTED, THRESHOLD_LOCKED_IN, THRESHOLD_ACTIVE,
  THRESHOLD_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)
 

Variables

const struct VBDeploymentInfo VersionBitsDeploymentInfo []
 

Typedef Documentation

Definition at line 31 of file versionbits.h.

Enumeration Type Documentation

Enumerator
THRESHOLD_DEFINED 
THRESHOLD_STARTED 
THRESHOLD_LOCKED_IN 
THRESHOLD_ACTIVE 
THRESHOLD_FAILED 

Definition at line 20 of file versionbits.h.

Function Documentation

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

Definition at line 209 of file versionbits.cpp.

Here is the caller graph for this function:

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

Definition at line 194 of file versionbits.cpp.

Here is the caller graph for this function:

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

Definition at line 204 of file versionbits.cpp.

Here is the caller graph for this function:

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

Definition at line 199 of file versionbits.cpp.

Here is the caller graph for this function:

Variable Documentation

const struct VBDeploymentInfo VersionBitsDeploymentInfo[]

Definition at line 8 of file versionbits.cpp.