Bitcoin ABC 0.30.5
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
10class CBlockIndex;
11
12namespace Consensus {
13struct Params;
14}
15
17bool IsUAHFenabled(const Consensus::Params &params,
18 const CBlockIndex *pindexPrev);
19bool IsUAHFenabled(const Consensus::Params &params, int nHeight);
20
22bool IsDAAEnabled(const Consensus::Params &params,
23 const CBlockIndex *pindexPrev);
24bool IsDAAEnabled(const Consensus::Params &params, int nHeight);
25
27bool IsMagneticAnomalyEnabled(const Consensus::Params &params, int32_t nHeight);
30 const CBlockIndex *pindexPrev);
31
33bool IsGravitonEnabled(const Consensus::Params &params,
34 const CBlockIndex *pindexPrev);
35
37bool IsPhononEnabled(const Consensus::Params &params,
38 const CBlockIndex *pindexPrev);
39
41bool IsAxionEnabled(const Consensus::Params &params,
42 const CBlockIndex *pindexPrev);
43
45bool IsWellingtonEnabled(const Consensus::Params &params, int32_t nHeight);
47bool IsWellingtonEnabled(const Consensus::Params &params,
48 const CBlockIndex *pindexPrev);
49
51bool IsCowperthwaiteEnabled(const Consensus::Params &params, int32_t nHeight);
53 const CBlockIndex *pindexPrev);
54
56bool IsAugustoEnabled(const Consensus::Params &params, int64_t nMedianTimePast);
57bool IsAugustoEnabled(const Consensus::Params &params,
58 const CBlockIndex *pindexPrev);
59
60#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 IsAugustoEnabled(const Consensus::Params &params, int64_t nMedianTimePast)
Check if May 15th, 2024 protocol upgrade has activated.
Definition: activation.cpp:117
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 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:25
unsigned int nHeight
Parameters that influence chain consensus.
Definition: params.h:34