Bitcoin Core 28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
WarningBitsConditionChecker Class Reference

Threshold condition checker that triggers when unknown versionbits are seen on the network. More...

Inheritance diagram for WarningBitsConditionChecker:
[legend]
Collaboration diagram for WarningBitsConditionChecker:
[legend]

Public Member Functions

 WarningBitsConditionChecker (const ChainstateManager &chainman, int bit)
 
int64_t BeginTime (const Consensus::Params &params) const override
 
int64_t EndTime (const Consensus::Params &params) const override
 
int Period (const Consensus::Params &params) const override
 
int Threshold (const Consensus::Params &params) const override
 
bool Condition (const CBlockIndex *pindex, const Consensus::Params &params) const override
 
- Public Member Functions inherited from AbstractThresholdConditionChecker
BIP9Stats GetStateStatisticsFor (const CBlockIndex *pindex, const Consensus::Params &params, 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.
 
ThresholdState GetStateFor (const CBlockIndex *pindexPrev, const Consensus::Params &params, ThresholdConditionCache &cache) const
 Returns the state for pindex A based on parent pindexPrev B.
 
int GetStateSinceHeightFor (const CBlockIndex *pindexPrev, const Consensus::Params &params, 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.
 

Private Attributes

const ChainstateManagerm_chainman
 
int m_bit
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractThresholdConditionChecker
virtual int MinActivationHeight (const Consensus::Params &params) const
 

Detailed Description

Threshold condition checker that triggers when unknown versionbits are seen on the network.

Definition at line 2338 of file validation.cpp.

Constructor & Destructor Documentation

◆ WarningBitsConditionChecker()

WarningBitsConditionChecker::WarningBitsConditionChecker ( const ChainstateManager & chainman,
int bit )
inlineexplicit

Definition at line 2345 of file validation.cpp.

Member Function Documentation

◆ BeginTime()

int64_t WarningBitsConditionChecker::BeginTime ( const Consensus::Params & params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 2347 of file validation.cpp.

◆ Condition()

bool WarningBitsConditionChecker::Condition ( const CBlockIndex * pindex,
const Consensus::Params & params ) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 2352 of file validation.cpp.

Here is the call graph for this function:

◆ EndTime()

int64_t WarningBitsConditionChecker::EndTime ( const Consensus::Params & params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 2348 of file validation.cpp.

◆ Period()

int WarningBitsConditionChecker::Period ( const Consensus::Params & params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 2349 of file validation.cpp.

◆ Threshold()

int WarningBitsConditionChecker::Threshold ( const Consensus::Params & params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 2350 of file validation.cpp.

Member Data Documentation

◆ m_bit

int WarningBitsConditionChecker::m_bit
private

Definition at line 2342 of file validation.cpp.

◆ m_chainman

const ChainstateManager& WarningBitsConditionChecker::m_chainman
private

Definition at line 2341 of file validation.cpp.


The documentation for this class was generated from the following file: