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

Public Member Functions

VersionBitsTesterReset ()
 
 ~VersionBitsTester ()
 
VersionBitsTesterMine (unsigned int height, int32_t nTime, int32_t nVersion)
 
VersionBitsTesterTestStateSinceHeight (int height)
 
VersionBitsTesterTestStateSinceHeight (int height, int height_delayed)
 
VersionBitsTesterTestState (ThresholdState exp)
 
VersionBitsTesterTestState (ThresholdState exp, ThresholdState exp_delayed)
 
VersionBitsTesterTestDefined ()
 
VersionBitsTesterTestStarted ()
 
VersionBitsTesterTestLockedIn ()
 
VersionBitsTesterTestActive ()
 
VersionBitsTesterTestFailed ()
 
VersionBitsTesterTestActiveDelayed ()
 
CBlockIndexTip ()
 

Private Attributes

std::vector< CBlockIndex * > vpblock
 
TestConditionChecker checker [CHECKERS]
 
TestDelayedActivationConditionChecker checker_delayed [CHECKERS]
 
TestAlwaysActiveConditionChecker checker_always [CHECKERS]
 
TestNeverActiveConditionChecker checker_never [CHECKERS]
 
int num {1000}
 

Detailed Description

Definition at line 68 of file versionbits_tests.cpp.

Constructor & Destructor Documentation

◆ ~VersionBitsTester()

VersionBitsTester::~VersionBitsTester ( )
inline

Definition at line 105 of file versionbits_tests.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Mine()

VersionBitsTester& VersionBitsTester::Mine ( unsigned int  height,
int32_t  nTime,
int32_t  nVersion 
)
inline

Definition at line 109 of file versionbits_tests.cpp.

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

◆ Reset()

VersionBitsTester& VersionBitsTester::Reset ( )
inline

Definition at line 88 of file versionbits_tests.cpp.

Here is the caller graph for this function:

◆ TestActive()

VersionBitsTester& VersionBitsTester::TestActive ( )
inline

Definition at line 178 of file versionbits_tests.cpp.

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

◆ TestActiveDelayed()

VersionBitsTester& VersionBitsTester::TestActiveDelayed ( )
inline

Definition at line 182 of file versionbits_tests.cpp.

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

◆ TestDefined()

VersionBitsTester& VersionBitsTester::TestDefined ( )
inline

Definition at line 175 of file versionbits_tests.cpp.

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

◆ TestFailed()

VersionBitsTester& VersionBitsTester::TestFailed ( )
inline

Definition at line 179 of file versionbits_tests.cpp.

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

◆ TestLockedIn()

VersionBitsTester& VersionBitsTester::TestLockedIn ( )
inline

Definition at line 177 of file versionbits_tests.cpp.

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

◆ TestStarted()

VersionBitsTester& VersionBitsTester::TestStarted ( )
inline

Definition at line 176 of file versionbits_tests.cpp.

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

◆ TestState() [1/2]

VersionBitsTester& VersionBitsTester::TestState ( ThresholdState  exp)
inline

Definition at line 142 of file versionbits_tests.cpp.

Here is the caller graph for this function:

◆ TestState() [2/2]

VersionBitsTester& VersionBitsTester::TestState ( ThresholdState  exp,
ThresholdState  exp_delayed 
)
inline

Definition at line 147 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ TestStateSinceHeight() [1/2]

VersionBitsTester& VersionBitsTester::TestStateSinceHeight ( int  height)
inline

Definition at line 122 of file versionbits_tests.cpp.

Here is the caller graph for this function:

◆ TestStateSinceHeight() [2/2]

VersionBitsTester& VersionBitsTester::TestStateSinceHeight ( int  height,
int  height_delayed 
)
inline

Definition at line 127 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ Tip()

CBlockIndex* VersionBitsTester::Tip ( )
inline

Definition at line 184 of file versionbits_tests.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ checker

TestConditionChecker VersionBitsTester::checker[CHECKERS]
private

Definition at line 76 of file versionbits_tests.cpp.

◆ checker_always

TestAlwaysActiveConditionChecker VersionBitsTester::checker_always[CHECKERS]
private

Definition at line 80 of file versionbits_tests.cpp.

◆ checker_delayed

TestDelayedActivationConditionChecker VersionBitsTester::checker_delayed[CHECKERS]
private

Definition at line 78 of file versionbits_tests.cpp.

◆ checker_never

TestNeverActiveConditionChecker VersionBitsTester::checker_never[CHECKERS]
private

Definition at line 82 of file versionbits_tests.cpp.

◆ num

int VersionBitsTester::num {1000}
private

Definition at line 85 of file versionbits_tests.cpp.

◆ vpblock

std::vector<CBlockIndex*> VersionBitsTester::vpblock
private

Definition at line 71 of file versionbits_tests.cpp.


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