Fabcoin Core
0.16.2
P2P Digital Currency
|
Abstract class that implements BIP9-style threshold logic, and caches results. More...
#include <versionbits.h>
Public Member Functions | |
BIP9Stats | GetStateStatisticsFor (const CBlockIndex *pindex, const Consensus::Params ¶ms) const |
ThresholdState | GetStateFor (const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, ThresholdConditionCache &cache) const |
int | GetStateSinceHeightFor (const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, ThresholdConditionCache &cache) const |
Protected Member Functions | |
virtual bool | Condition (const CBlockIndex *pindex, const Consensus::Params ¶ms) const =0 |
virtual int64_t | BeginTime (const Consensus::Params ¶ms) const =0 |
virtual int64_t | EndTime (const Consensus::Params ¶ms) const =0 |
virtual int | Period (const Consensus::Params ¶ms) const =0 |
virtual int | Threshold (const Consensus::Params ¶ms) const =0 |
Abstract class that implements BIP9-style threshold logic, and caches results.
Definition at line 53 of file versionbits.h.
|
protectedpure virtual |
Implemented in WarningBitsConditionChecker.
|
protectedpure virtual |
Implemented in WarningBitsConditionChecker.
|
protectedpure virtual |
Implemented in WarningBitsConditionChecker.
ThresholdState AbstractThresholdConditionChecker::GetStateFor | ( | const CBlockIndex * | pindexPrev, |
const Consensus::Params & | params, | ||
ThresholdConditionCache & | cache | ||
) | const |
Definition at line 23 of file versionbits.cpp.
int AbstractThresholdConditionChecker::GetStateSinceHeightFor | ( | const CBlockIndex * | pindexPrev, |
const Consensus::Params & | params, | ||
ThresholdConditionCache & | cache | ||
) | const |
BIP9Stats AbstractThresholdConditionChecker::GetStateStatisticsFor | ( | const CBlockIndex * | pindex, |
const Consensus::Params & | params | ||
) | const |
|
protectedpure virtual |
Implemented in WarningBitsConditionChecker.
|
protectedpure virtual |
Implemented in WarningBitsConditionChecker.