Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Protected Member Functions | List of all members
AbstractThresholdConditionChecker Class Referenceabstract

Abstract class that implements BIP9-style threshold logic, and caches results. More...

#include <versionbits.h>

Inheritance diagram for AbstractThresholdConditionChecker:
[legend]

Public Member Functions

BIP9Stats GetStateStatisticsFor (const CBlockIndex *pindex, const Consensus::Params &params) const
 
ThresholdState GetStateFor (const CBlockIndex *pindexPrev, const Consensus::Params &params, ThresholdConditionCache &cache) const
 
int GetStateSinceHeightFor (const CBlockIndex *pindexPrev, const Consensus::Params &params, ThresholdConditionCache &cache) const
 

Protected Member Functions

virtual bool Condition (const CBlockIndex *pindex, const Consensus::Params &params) const =0
 
virtual int64_t BeginTime (const Consensus::Params &params) const =0
 
virtual int64_t EndTime (const Consensus::Params &params) const =0
 
virtual int Period (const Consensus::Params &params) const =0
 
virtual int Threshold (const Consensus::Params &params) const =0
 

Detailed Description

Abstract class that implements BIP9-style threshold logic, and caches results.

Definition at line 44 of file versionbits.h.

Member Function Documentation

◆ BeginTime()

virtual int64_t AbstractThresholdConditionChecker::BeginTime ( const Consensus::Params params) const
protectedpure virtual

Implemented in WarningBitsConditionChecker.

Here is the caller graph for this function:

◆ Condition()

virtual bool AbstractThresholdConditionChecker::Condition ( const CBlockIndex pindex,
const Consensus::Params params 
) const
protectedpure virtual

Implemented in WarningBitsConditionChecker.

Here is the caller graph for this function:

◆ EndTime()

virtual int64_t AbstractThresholdConditionChecker::EndTime ( const Consensus::Params params) const
protectedpure virtual

Implemented in WarningBitsConditionChecker.

Here is the caller graph for this function:

◆ GetStateFor()

ThresholdState AbstractThresholdConditionChecker::GetStateFor ( const CBlockIndex pindexPrev,
const Consensus::Params params,
ThresholdConditionCache cache 
) const

Definition at line 8 of file versionbits.cpp.

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

◆ GetStateSinceHeightFor()

int AbstractThresholdConditionChecker::GetStateSinceHeightFor ( const CBlockIndex pindexPrev,
const Consensus::Params params,
ThresholdConditionCache cache 
) const

Definition at line 127 of file versionbits.cpp.

Here is the call graph for this function:

◆ GetStateStatisticsFor()

BIP9Stats AbstractThresholdConditionChecker::GetStateStatisticsFor ( const CBlockIndex pindex,
const Consensus::Params params 
) const

Definition at line 98 of file versionbits.cpp.

Here is the call graph for this function:

◆ Period()

virtual int AbstractThresholdConditionChecker::Period ( const Consensus::Params params) const
protectedpure virtual

Implemented in WarningBitsConditionChecker.

Here is the caller graph for this function:

◆ Threshold()

virtual int AbstractThresholdConditionChecker::Threshold ( const Consensus::Params params) const
protectedpure virtual

Implemented in WarningBitsConditionChecker.

Here is the caller graph for this function:

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