Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
TestConditionChecker Class Reference
Inheritance diagram for TestConditionChecker:
[legend]
Collaboration diagram for TestConditionChecker:
[legend]

Public Member Functions

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
 
ThresholdState GetStateFor (const CBlockIndex *pindexPrev) const
 
int GetStateSinceHeightFor (const CBlockIndex *pindexPrev) const
 
- 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. More...
 
ThresholdState GetStateFor (const CBlockIndex *pindexPrev, const Consensus::Params &params, ThresholdConditionCache &cache) const
 Returns the state for pindex A based on parent pindexPrev B. More...
 
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. More...
 

Private Attributes

ThresholdConditionCache cache
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractThresholdConditionChecker
virtual bool Condition (const CBlockIndex *pindex, const Consensus::Params &params) const =0
 
virtual int64_t BeginTime (const Consensus::Params &params) const =0
 
virtual int64_t EndTime (const Consensus::Params &params) const =0
 
virtual int MinActivationHeight (const Consensus::Params &params) const
 
virtual int Period (const Consensus::Params &params) const =0
 
virtual int Threshold (const Consensus::Params &params) const =0
 

Detailed Description

Definition at line 32 of file versionbits_tests.cpp.

Member Function Documentation

◆ BeginTime()

int64_t TestConditionChecker::BeginTime ( const Consensus::Params params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Reimplemented in TestAlwaysActiveConditionChecker, and TestNeverActiveConditionChecker.

Definition at line 38 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ Condition()

bool TestConditionChecker::Condition ( const CBlockIndex pindex,
const Consensus::Params params 
) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 42 of file versionbits_tests.cpp.

◆ EndTime()

int64_t TestConditionChecker::EndTime ( const Consensus::Params params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 39 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ GetStateFor()

ThresholdState TestConditionChecker::GetStateFor ( const CBlockIndex pindexPrev) const
inline

Definition at line 44 of file versionbits_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetStateSinceHeightFor()

int TestConditionChecker::GetStateSinceHeightFor ( const CBlockIndex pindexPrev) const
inline

Definition at line 45 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ Period()

int TestConditionChecker::Period ( const Consensus::Params params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 40 of file versionbits_tests.cpp.

◆ Threshold()

int TestConditionChecker::Threshold ( const Consensus::Params params) const
inlineoverridevirtual

Implements AbstractThresholdConditionChecker.

Definition at line 41 of file versionbits_tests.cpp.

Member Data Documentation

◆ cache

ThresholdConditionCache TestConditionChecker::cache
mutableprivate

Definition at line 35 of file versionbits_tests.cpp.


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