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

Public Member Functions

 explicit (false) TestConditionChecker(const Consensus
 
 ~TestConditionChecker () override=default
 
ThresholdState StateFor (const CBlockIndex *pindexPrev) const
 
int StateSinceHeightFor (const CBlockIndex *pindexPrev) const
 
void clear ()
 
- Public Member Functions inherited from VersionBitsConditionChecker
 VersionBitsConditionChecker (const Consensus::BIP9Deployment &dep)
 
 VersionBitsConditionChecker (const Consensus::Params &params, Consensus::DeploymentPos id)
 
uint32_t Mask () const
 
bool Condition (int32_t nVersion) const
 
- Public Member Functions inherited from AbstractThresholdConditionChecker
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...
 

Private Attributes

ThresholdConditionCache cache
 

Additional Inherited Members

- Protected Member Functions inherited from VersionBitsConditionChecker
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
 

Detailed Description

Definition at line 19 of file versionbits_tests.cpp.

Constructor & Destructor Documentation

◆ ~TestConditionChecker()

TestConditionChecker::~TestConditionChecker ( )
overridedefault

Member Function Documentation

◆ clear()

void TestConditionChecker::clear ( )
inline

Definition at line 31 of file versionbits_tests.cpp.

◆ explicit()

TestConditionChecker::explicit ( false  ) const
inline

Definition at line 26 of file versionbits_tests.cpp.

◆ StateFor()

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

Definition at line 29 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ StateSinceHeightFor()

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

Definition at line 30 of file versionbits_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ cache

ThresholdConditionCache TestConditionChecker::cache
mutableprivate

Definition at line 22 of file versionbits_tests.cpp.


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