Bitcoin Core 29.99.0
P2P Digital Currency
Classes | Enumerations | Functions
versionbits_impl.h File Reference
#include <chain.h>
#include <sync.h>
#include <versionbits.h>
Include dependency graph for versionbits_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AbstractThresholdConditionChecker
 Abstract class that implements BIP9-style threshold logic, and caches results. More...
 
class  VersionBitsConditionChecker
 Class to implement versionbits logic. More...
 

Enumerations

enum class  ThresholdState : uint8_t {
  DEFINED , STARTED , LOCKED_IN , ACTIVE ,
  FAILED
}
 BIP 9 defines a finite-state-machine to deploy a softfork in multiple stages. More...
 

Functions

std::string StateName (ThresholdState state)
 Get a string with the state name. More...
 

Enumeration Type Documentation

◆ ThresholdState

enum class ThresholdState : uint8_t
strong

BIP 9 defines a finite-state-machine to deploy a softfork in multiple stages.

State transitions happen during retarget period if conditions are met In case of reorg, transitions can go backward. Without transition, state is inherited between periods. All blocks of a period share the same state.

Enumerator
DEFINED 
STARTED 
LOCKED_IN 
ACTIVE 
FAILED 

Definition at line 17 of file versionbits_impl.h.

Function Documentation

◆ StateName()

std::string StateName ( ThresholdState  state)

Get a string with the state name.

Definition at line 14 of file versionbits.cpp.

Here is the caller graph for this function: