Bitcoin ABC  0.24.7
P2P Digital Currency
activation.h
Go to the documentation of this file.
1 // Copyright (c) 2018-2019 The Bitcoin developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_CONSENSUS_ACTIVATION_H
6 #define BITCOIN_CONSENSUS_ACTIVATION_H
7 
8 #include <cstdint>
9 
10 class CBlockIndex;
11 
12 namespace Consensus {
13 struct Params;
14 }
15 
17 bool IsUAHFenabled(const Consensus::Params &params,
18  const CBlockIndex *pindexPrev);
19 
21 bool IsDAAEnabled(const Consensus::Params &params,
22  const CBlockIndex *pindexPrev);
23 
25 bool IsMagneticAnomalyEnabled(const Consensus::Params &params, int32_t nHeight);
28  const CBlockIndex *pindexPrev);
29 
31 bool IsGravitonEnabled(const Consensus::Params &params,
32  const CBlockIndex *pindexPrev);
33 
35 bool IsPhononEnabled(const Consensus::Params &params,
36  const CBlockIndex *pindexPrev);
37 
39 bool IsAxionEnabled(const Consensus::Params &params,
40  const CBlockIndex *pindexPrev);
41 
42 #endif // BITCOIN_CONSENSUS_ACTIVATION_H
nHeight
unsigned int nHeight
Definition: mempool_eviction.cpp:13
IsGravitonEnabled
bool IsGravitonEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if Nov 15th, 2019 protocol upgrade has activated.
Definition: activation.cpp:56
Consensus::Params
Parameters that influence chain consensus.
Definition: params.h:59
IsAxionEnabled
bool IsAxionEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if November 15th, 2020 protocol upgrade has activated.
Definition: activation.cpp:78
Consensus
Definition: blockdb.h:10
IsMagneticAnomalyEnabled
bool IsMagneticAnomalyEnabled(const Consensus::Params &params, int32_t nHeight)
Check if Nov 15, 2018 HF has activated using block height.
Definition: activation.cpp:37
IsPhononEnabled
bool IsPhononEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if May 15th, 2020 protocol upgrade has activated.
Definition: activation.cpp:69
IsUAHFenabled
bool IsUAHFenabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if UAHF has activated.
Definition: activation.cpp:15
IsDAAEnabled
bool IsDAAEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if DAA HF has activated.
Definition: activation.cpp:28
Params
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:508
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:23