Bitcoin ABC  0.26.3
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 bool IsUAHFenabled(const Consensus::Params &params, int nHeight);
20 
22 bool IsDAAEnabled(const Consensus::Params &params,
23  const CBlockIndex *pindexPrev);
24 bool IsDAAEnabled(const Consensus::Params &params, int nHeight);
25 
27 bool IsMagneticAnomalyEnabled(const Consensus::Params &params, int32_t nHeight);
30  const CBlockIndex *pindexPrev);
31 
33 bool IsGravitonEnabled(const Consensus::Params &params,
34  const CBlockIndex *pindexPrev);
35 
37 bool IsPhononEnabled(const Consensus::Params &params,
38  const CBlockIndex *pindexPrev);
39 
41 bool IsAxionEnabled(const Consensus::Params &params,
42  const CBlockIndex *pindexPrev);
43 
45 bool IsWellingtonEnabled(const Consensus::Params &params, int32_t nHeight);
47 bool IsWellingtonEnabled(const Consensus::Params &params,
48  const CBlockIndex *pindexPrev);
49 
51 bool IsCowperthwaiteEnabled(const Consensus::Params &params, int32_t nHeight);
52 bool IsCowperthwaiteEnabled(const Consensus::Params &params,
53  const CBlockIndex *pindexPrev);
54 
56 bool IsLeeKuanYewEnabled(const Consensus::Params &params,
57  int64_t nMedianTimePast);
58 bool IsLeeKuanYewEnabled(const Consensus::Params &params,
59  const CBlockIndex *pindexPrev);
60 
61 #endif // BITCOIN_CONSENSUS_ACTIVATION_H
bool IsAxionEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if November 15th, 2020 protocol upgrade has activated.
Definition: activation.cpp:82
bool IsWellingtonEnabled(const Consensus::Params &params, int32_t nHeight)
Check if May 15th, 2023 protocol upgrade has activated.
Definition: activation.cpp:91
bool IsCowperthwaiteEnabled(const Consensus::Params &params, int32_t nHeight)
Check if Nov 15th, 2023 protocol upgrade has activated.
Definition: activation.cpp:104
bool IsUAHFenabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if UAHF has activated.
Definition: activation.cpp:15
bool IsMagneticAnomalyEnabled(const Consensus::Params &params, int32_t nHeight)
Check if Nov 15, 2018 HF has activated using block height.
Definition: activation.cpp:37
bool IsDAAEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if DAA HF has activated.
Definition: activation.cpp:28
bool IsLeeKuanYewEnabled(const Consensus::Params &params, int64_t nMedianTimePast)
Check if May 15th, 2024 protocol upgrade has activated.
Definition: activation.cpp:117
bool IsPhononEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if May 15th, 2020 protocol upgrade has activated.
Definition: activation.cpp:69
bool IsGravitonEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if Nov 15th, 2019 protocol upgrade has activated.
Definition: activation.cpp:56
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:26
unsigned int nHeight
Parameters that influence chain consensus.
Definition: params.h:34