Bitcoin
|
Go to the source code of this file.
Classes | |
struct | BIP9Stats |
class | AbstractThresholdConditionChecker |
struct | VersionBitsCache |
Typedefs | |
typedef std::map< const CBlockIndex *, ThresholdState > | ThresholdConditionCache |
Enumerations | |
enum | ThresholdState { ThresholdState::DEFINED, ThresholdState::STARTED, ThresholdState::LOCKED_IN, ThresholdState::ACTIVE, ThresholdState::FAILED } |
Functions | |
ThresholdState | VersionBitsState (const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos, VersionBitsCache &cache) |
BIP9Stats | VersionBitsStatistics (const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos) |
int | VersionBitsStateSinceHeight (const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos, VersionBitsCache &cache) |
uint32_t | VersionBitsMask (const Consensus::Params ¶ms, Consensus::DeploymentPos pos) |
Variables | |
static const int32_t | VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4 |
static const int32_t | VERSIONBITS_TOP_BITS = 0x20000000UL |
static const int32_t | VERSIONBITS_TOP_MASK = 0xE0000000UL |
static const int32_t | VERSIONBITS_NUM_BITS = 29 |
typedef std::map<const CBlockIndex*, ThresholdState> ThresholdConditionCache |
|
strong |
uint32_t VersionBitsMask | ( | const Consensus::Params & | params, |
Consensus::DeploymentPos | pos | ||
) |
ThresholdState VersionBitsState | ( | const CBlockIndex * | pindexPrev, |
const Consensus::Params & | params, | ||
Consensus::DeploymentPos | pos, | ||
VersionBitsCache & | cache | ||
) |
int VersionBitsStateSinceHeight | ( | const CBlockIndex * | pindexPrev, |
const Consensus::Params & | params, | ||
Consensus::DeploymentPos | pos, | ||
VersionBitsCache & | cache | ||
) |
BIP9Stats VersionBitsStatistics | ( | const CBlockIndex * | pindexPrev, |
const Consensus::Params & | params, | ||
Consensus::DeploymentPos | pos | ||
) |
|
static |
What block version to use for new blocks (pre versionbits)
|
static |
Total bits available for versionbits
|
static |
What bits to set in version for versionbits blocks
|
static |
What bitmask determines whether versionbits is in use