Bitcoin ABC  0.22.13
P2P Digital Currency
Functions
activation.cpp File Reference
#include <consensus/activation.h>
#include <chain.h>
#include <consensus/params.h>
#include <util/system.h>
Include dependency graph for activation.cpp:

Go to the source code of this file.

Functions

static bool IsUAHFenabled (const Consensus::Params &params, int nHeight)
 
bool IsUAHFenabled (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 Check if UAHF has activated. More...
 
static bool IsDAAEnabled (const Consensus::Params &params, int nHeight)
 
bool IsDAAEnabled (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 Check if DAA HF has activated. More...
 
bool IsMagneticAnomalyEnabled (const Consensus::Params &params, int32_t nHeight)
 Check if Nov 15, 2018 HF has activated using block height. More...
 
bool IsMagneticAnomalyEnabled (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 Check if Nov 15, 2018 HF has activated using previous block index. More...
 
static bool IsGravitonEnabled (const Consensus::Params &params, int32_t nHeight)
 
bool IsGravitonEnabled (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 Check if Nov 15th, 2019 protocol upgrade has activated. More...
 
static bool IsPhononEnabled (const Consensus::Params &params, int32_t nHeight)
 
bool IsPhononEnabled (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 Check if May 15th, 2020 protocol upgrade has activated. More...
 
bool IsAxionEnabled (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 Check if November 15th, 2020 protocol upgrade has activated. More...
 

Function Documentation

◆ IsAxionEnabled()

bool IsAxionEnabled ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Check if November 15th, 2020 protocol upgrade has activated.

Definition at line 78 of file activation.cpp.

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

◆ IsDAAEnabled() [1/2]

static bool IsDAAEnabled ( const Consensus::Params params,
int  nHeight 
)
static

Definition at line 24 of file activation.cpp.

Here is the caller graph for this function:

◆ IsDAAEnabled() [2/2]

bool IsDAAEnabled ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Check if DAA HF has activated.

Definition at line 28 of file activation.cpp.

Here is the call graph for this function:

◆ IsGravitonEnabled() [1/2]

static bool IsGravitonEnabled ( const Consensus::Params params,
int32_t  nHeight 
)
static

Definition at line 51 of file activation.cpp.

Here is the caller graph for this function:

◆ IsGravitonEnabled() [2/2]

bool IsGravitonEnabled ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Check if Nov 15th, 2019 protocol upgrade has activated.

Definition at line 56 of file activation.cpp.

Here is the call graph for this function:

◆ IsMagneticAnomalyEnabled() [1/2]

bool IsMagneticAnomalyEnabled ( const Consensus::Params params,
int32_t  nHeight 
)

Check if Nov 15, 2018 HF has activated using block height.

Definition at line 37 of file activation.cpp.

Here is the caller graph for this function:

◆ IsMagneticAnomalyEnabled() [2/2]

bool IsMagneticAnomalyEnabled ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Check if Nov 15, 2018 HF has activated using previous block index.

Definition at line 42 of file activation.cpp.

Here is the call graph for this function:

◆ IsPhononEnabled() [1/2]

static bool IsPhononEnabled ( const Consensus::Params params,
int32_t  nHeight 
)
static

Definition at line 65 of file activation.cpp.

Here is the caller graph for this function:

◆ IsPhononEnabled() [2/2]

bool IsPhononEnabled ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Check if May 15th, 2020 protocol upgrade has activated.

Definition at line 69 of file activation.cpp.

Here is the call graph for this function:

◆ IsUAHFenabled() [1/2]

static bool IsUAHFenabled ( const Consensus::Params params,
int  nHeight 
)
static

Definition at line 11 of file activation.cpp.

Here is the caller graph for this function:

◆ IsUAHFenabled() [2/2]

bool IsUAHFenabled ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Check if UAHF has activated.

Definition at line 15 of file activation.cpp.

Here is the call graph for this function: