Abstract class that implements BIP9-style threshold logic, and caches results.
More...
#include <versionbits_impl.h>
Abstract class that implements BIP9-style threshold logic, and caches results.
Definition at line 31 of file versionbits_impl.h.
◆ ~AbstractThresholdConditionChecker()
virtual AbstractThresholdConditionChecker::~AbstractThresholdConditionChecker |
( |
| ) |
|
|
virtualdefault |
◆ BeginTime()
virtual int64_t AbstractThresholdConditionChecker::BeginTime |
( |
| ) |
const |
|
protectedpure virtual |
◆ Condition()
virtual bool AbstractThresholdConditionChecker::Condition |
( |
const CBlockIndex * |
pindex | ) |
const |
|
protectedpure virtual |
◆ EndTime()
virtual int64_t AbstractThresholdConditionChecker::EndTime |
( |
| ) |
const |
|
protectedpure virtual |
◆ GetStateFor()
Returns the state for pindex A based on parent pindexPrev B.
Applies any state transition if conditions are present. Caches state from first block of period.
Definition at line 26 of file versionbits.cpp.
◆ GetStateSinceHeightFor()
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.
Definition at line 157 of file versionbits.cpp.
◆ GetStateStatisticsFor()
BIP9Stats AbstractThresholdConditionChecker::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.
Definition at line 119 of file versionbits.cpp.
◆ MinActivationHeight()
virtual int AbstractThresholdConditionChecker::MinActivationHeight |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ Period()
virtual int AbstractThresholdConditionChecker::Period |
( |
| ) |
const |
|
protectedpure virtual |
◆ Threshold()
virtual int AbstractThresholdConditionChecker::Threshold |
( |
| ) |
const |
|
protectedpure virtual |
The documentation for this class was generated from the following files: