Bitcoin Core 28.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

 VersionBitsTester (FastRandomContext &rng)
 
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

FastRandomContextm_rng
 
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 ( FastRandomContext rng)
inline

Definition at line 89 of file versionbits_tests.cpp.

◆ ~VersionBitsTester()

VersionBitsTester::~VersionBitsTester ( )
inline

Definition at line 108 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 112 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 91 of file versionbits_tests.cpp.

Here is the caller graph for this function:

◆ TestActive()

VersionBitsTester & VersionBitsTester::TestActive ( )
inline

Definition at line 181 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 185 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 178 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 182 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 180 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 179 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 145 of file versionbits_tests.cpp.

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

◆ TestState() [2/2]

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

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

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

◆ TestStateSinceHeight() [2/2]

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

Definition at line 130 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ Tip()

CBlockIndex * VersionBitsTester::Tip ( )
inline

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

◆ checker_always

TestAlwaysActiveConditionChecker VersionBitsTester::checker_always[CHECKERS]
private

Definition at line 81 of file versionbits_tests.cpp.

◆ checker_delayed

TestDelayedActivationConditionChecker VersionBitsTester::checker_delayed[CHECKERS]
private

Definition at line 79 of file versionbits_tests.cpp.

◆ checker_never

TestNeverActiveConditionChecker VersionBitsTester::checker_never[CHECKERS]
private

Definition at line 83 of file versionbits_tests.cpp.

◆ m_rng

FastRandomContext& VersionBitsTester::m_rng
private

Definition at line 70 of file versionbits_tests.cpp.

◆ num

int VersionBitsTester::num {1000}
private

Definition at line 86 of file versionbits_tests.cpp.

◆ vpblock

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

Definition at line 72 of file versionbits_tests.cpp.


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