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 53 of file versionbits.h.

Member Function Documentation

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

Implemented in WarningBitsConditionChecker.

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

Implemented in WarningBitsConditionChecker.

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

Implemented in WarningBitsConditionChecker.

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

Definition at line 23 of file versionbits.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 137 of file versionbits.cpp.

Here is the call graph for this function:

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

Definition at line 108 of file versionbits.cpp.

Here is the call graph for this function:

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

Implemented in WarningBitsConditionChecker.

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: