Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Threshold condition checker that triggers when unknown versionbits are seen on the network. More...
Public Member Functions | |
WarningBitsConditionChecker (int bitIn) | |
int64_t | BeginTime (const Consensus::Params ¶ms) const override |
int64_t | EndTime (const Consensus::Params ¶ms) const override |
int | Period (const Consensus::Params ¶ms) const override |
int | Threshold (const Consensus::Params ¶ms, int nAttempt) const override |
bool | Condition (const CBlockIndex *pindex, const Consensus::Params ¶ms) const override |
Public Member Functions inherited from AbstractThresholdConditionChecker | |
BIP9Stats | GetStateStatisticsFor (const CBlockIndex *pindex, const Consensus::Params ¶ms, ThresholdConditionCache &cache) 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 |
Private Attributes | |
int | bit |
Additional Inherited Members |
Detailed Description
Threshold condition checker that triggers when unknown versionbits are seen on the network.
Definition at line 1907 of file validation.cpp.
Constructor & Destructor Documentation
◆ WarningBitsConditionChecker()
|
inlineexplicit |
Definition at line 1913 of file validation.cpp.
Member Function Documentation
◆ BeginTime()
|
inlineoverridevirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 1915 of file validation.cpp.
◆ Condition()
|
inlineoverridevirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 1920 of file validation.cpp.
References bit, ComputeBlockVersion(), CBlockIndex::nVersion, CBlockIndex::pprev, VERSIONBITS_TOP_BITS, and VERSIONBITS_TOP_MASK.
◆ EndTime()
|
inlineoverridevirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 1916 of file validation.cpp.
◆ Period()
|
inlineoverridevirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 1917 of file validation.cpp.
References Consensus::Params::nMinerConfirmationWindow.
◆ Threshold()
|
inlineoverridevirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 1918 of file validation.cpp.
References Consensus::Params::nRuleChangeActivationThreshold.
Member Data Documentation
◆ bit
|
private |
Definition at line 1910 of file validation.cpp.
Referenced by Condition().
The documentation for this class was generated from the following file:
- src/validation.cpp