5 #ifndef FABCOIN_CONSENSUS_VERSIONBITS 6 #define FABCOIN_CONSENSUS_VERSIONBITS 12 static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 5;
14 static const int32_t VERSIONBITS_TOP_BITS = 0x20000000
UL;
16 static const int32_t VERSIONBITS_TOP_MASK = 0xE0000000
UL;
18 static const int32_t VERSIONBITS_NUM_BITS = 29;
bool gbt_force
Whether GBT clients can safely ignore this rule in simplified usage.
const struct VBDeploymentInfo VersionBitsDeploymentInfo[]
BIP9Stats VersionBitsStatistics(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos)
ThresholdState VersionBitsState(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos, VersionBitsCache &cache)
Abstract class that implements BIP9-style threshold logic, and caches results.
Parameters that influence chain consensus.
std::map< const CBlockIndex *, ThresholdState > ThresholdConditionCache
int VersionBitsStateSinceHeight(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos, VersionBitsCache &cache)
const char * name
Deployment name.
The block chain is a tree shaped structure starting with the genesis block at the root...
uint32_t VersionBitsMask(const Consensus::Params ¶ms, Consensus::DeploymentPos pos)