![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
Class to implement versionbits logic. More...
#include <versionbits_impl.h>
Public Member Functions | |
VersionBitsConditionChecker (const Consensus::BIP9Deployment &dep) | |
VersionBitsConditionChecker (const Consensus::Params ¶ms, Consensus::DeploymentPos id) | |
uint32_t | Mask () const |
bool | Condition (int32_t nVersion) const |
![]() | |
virtual | ~AbstractThresholdConditionChecker ()=default |
BIP9Stats | GetStateStatisticsFor (const CBlockIndex *pindex, std::vector< bool > *signalling_blocks=nullptr) const |
Returns the numerical statistics of an in-progress BIP9 softfork in the period including pindex If provided, signalling_blocks is set to true/false based on whether each block in the period signalled. More... | |
ThresholdState | GetStateFor (const CBlockIndex *pindexPrev, ThresholdConditionCache &cache) const |
Returns the state for pindex A based on parent pindexPrev B. More... | |
int | GetStateSinceHeightFor (const CBlockIndex *pindexPrev, ThresholdConditionCache &cache) const |
Returns the height since when the ThresholdState has started for pindex A based on parent pindexPrev B, all blocks of a period share the same. More... | |
Protected Member Functions | |
int64_t | BeginTime () const override |
int64_t | EndTime () const override |
int | MinActivationHeight () const override |
int | Period () const override |
int | Threshold () const override |
bool | Condition (const CBlockIndex *pindex) const override |
virtual bool | Condition (const CBlockIndex *pindex) const =0 |
virtual int64_t | BeginTime () const =0 |
virtual int64_t | EndTime () const =0 |
virtual int | MinActivationHeight () const |
virtual int | Period () const =0 |
virtual int | Threshold () const =0 |
Private Attributes | |
const Consensus::BIP9Deployment & | dep |
Class to implement versionbits logic.
Definition at line 57 of file versionbits_impl.h.
|
inlineexplicit |
Definition at line 74 of file versionbits_impl.h.
|
inlineexplicit |
Definition at line 75 of file versionbits_impl.h.
|
inlineoverrideprotectedvirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 62 of file versionbits_impl.h.
|
inlineoverrideprotectedvirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 68 of file versionbits_impl.h.
|
inline |
|
inlineoverrideprotectedvirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 63 of file versionbits_impl.h.
|
inline |
|
inlineoverrideprotectedvirtual |
Reimplemented from AbstractThresholdConditionChecker.
Definition at line 64 of file versionbits_impl.h.
|
inlineoverrideprotectedvirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 65 of file versionbits_impl.h.
|
inlineoverrideprotectedvirtual |
Implements AbstractThresholdConditionChecker.
Definition at line 66 of file versionbits_impl.h.
|
private |
Definition at line 59 of file versionbits_impl.h.