5 #ifndef BITCOIN_CONSENSUS_VERSIONBITS 6 #define BITCOIN_CONSENSUS_VERSIONBITS virtual bool Condition(const CBlockIndex *pindex, const Consensus::Params ¶ms) const =0
virtual int Period(const Consensus::Params ¶ms) const =0
static const int32_t VERSIONBITS_TOP_MASK
virtual int64_t BeginTime(const Consensus::Params ¶ms) const =0
ThresholdConditionCache caches[Consensus::MAX_VERSION_BITS_DEPLOYMENTS]
const struct BIP9DeploymentInfo VersionBitsDeploymentInfo[]
virtual int Threshold(const Consensus::Params ¶ms) const =0
ThresholdState VersionBitsState(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, Consensus::DeploymentPos pos, VersionBitsCache &cache)
std::map< const CBlockIndex *, ThresholdState > ThresholdConditionCache
static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION
static const int32_t VERSIONBITS_TOP_BITS
uint32_t VersionBitsMask(const Consensus::Params ¶ms, Consensus::DeploymentPos pos)
static const int32_t VERSIONBITS_NUM_BITS
ThresholdState GetStateFor(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, ThresholdConditionCache &cache) const
virtual int64_t EndTime(const Consensus::Params ¶ms) const =0