Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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.
ThresholdState GetStateFor (const CBlockIndex *pindexPrev, ThresholdConditionCache &cache) const
 Returns the state for pindex A based on parent pindexPrev B.
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.

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

Detailed Description

Definition at line 20 of file versionbits_tests.cpp.

Constructor & Destructor Documentation

◆ ~TestConditionChecker()

TestConditionChecker::~TestConditionChecker ( )
overridedefault

Member Function Documentation

◆ clear()

void TestConditionChecker::clear ( )
inline

Definition at line 32 of file versionbits_tests.cpp.

◆ explicit()

TestConditionChecker::explicit ( false ) const
inline

Definition at line 27 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ StateFor()

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

Definition at line 30 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 31 of file versionbits_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ cache

ThresholdConditionCache TestConditionChecker::cache
mutableprivate

Definition at line 23 of file versionbits_tests.cpp.


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