Raven Core  3.0.0
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 60 of file versionbits.h.

Member Function Documentation

◆ BeginTime()

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

Implemented in WarningBitsConditionChecker.

◆ Condition()

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

Implemented in WarningBitsConditionChecker.

◆ EndTime()

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

Implemented in WarningBitsConditionChecker.

◆ GetStateFor()

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

Definition at line 32 of file versionbits.cpp.

Here is the call graph for this function:

◆ GetStateSinceHeightFor()

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

Definition at line 146 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 117 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.

◆ Threshold()

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

Implemented in WarningBitsConditionChecker.


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