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 
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 
43 bool IsWellingtonEnabled(const Consensus::Params &params, int32_t nHeight);
45 bool IsWellingtonEnabled(const Consensus::Params &params,
46  const CBlockIndex *pindexPrev);
47 
49 bool IsCowperthwaiteEnabled(const Consensus::Params &params, int32_t nHeight);
50 bool IsCowperthwaiteEnabled(const Consensus::Params &params,
51  const CBlockIndex *pindexPrev);
52 
54 bool IsLeeKuanYewEnabled(const Consensus::Params &params,
55  int64_t nMedianTimePast);
56 bool IsLeeKuanYewEnabled(const Consensus::Params &params,
57  const CBlockIndex *pindexPrev);
58 
59 #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:33