Bitcoin Core 29.99.0
P2P Digital Currency
Classes | Typedefs | Variables
versionbits.h File Reference
#include <chain.h>
#include <sync.h>
#include <array>
#include <map>
#include <optional>
#include <vector>
Include dependency graph for versionbits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BIP9Stats
 Display status of an in-progress BIP9 softfork. More...
 
struct  BIP9Info
 Detailed status of an enabled BIP9 deployment. More...
 
struct  BIP9GBTStatus
 
struct  BIP9GBTStatus::Info
 
class  VersionBitsCache
 BIP 9 allows multiple softforks to be deployed in parallel. More...
 

Typedefs

typedef std::map< const CBlockIndex *, ThresholdStateThresholdConditionCache
 

Variables

static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4
 What block version to use for new blocks (pre versionbits) More...
 
static const int32_t VERSIONBITS_TOP_BITS = 0x20000000UL
 What bits to set in version for versionbits blocks. More...
 
static const int32_t VERSIONBITS_TOP_MASK = 0xE0000000UL
 What bitmask determines whether versionbits is in use. More...
 
static const int32_t VERSIONBITS_NUM_BITS = 29
 Total bits available for versionbits. More...
 

Typedef Documentation

◆ ThresholdConditionCache

Definition at line 33 of file versionbits.h.

Variable Documentation

◆ VERSIONBITS_LAST_OLD_BLOCK_VERSION

const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4
static

What block version to use for new blocks (pre versionbits)

Definition at line 19 of file versionbits.h.

◆ VERSIONBITS_NUM_BITS

const int32_t VERSIONBITS_NUM_BITS = 29
static

Total bits available for versionbits.

Definition at line 25 of file versionbits.h.

◆ VERSIONBITS_TOP_BITS

const int32_t VERSIONBITS_TOP_BITS = 0x20000000UL
static

What bits to set in version for versionbits blocks.

Definition at line 21 of file versionbits.h.

◆ VERSIONBITS_TOP_MASK

const int32_t VERSIONBITS_TOP_MASK = 0xE0000000UL
static

What bitmask determines whether versionbits is in use.

Definition at line 23 of file versionbits.h.