Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
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
47bool IsWellingtonEnabled(const Consensus::Params &params,
48 const CBlockIndex *pindexPrev);
49
53 const CBlockIndex *pindexPrev);
54
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.
bool IsWellingtonEnabled(const Consensus::Params &params, int32_t nHeight)
Check if May 15th, 2023 protocol upgrade has activated.
bool IsCowperthwaiteEnabled(const Consensus::Params &params, int32_t nHeight)
Check if Nov 15th, 2023 protocol upgrade has activated.
bool IsUAHFenabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if UAHF has activated.
bool IsAugustoEnabled(const Consensus::Params &params, int64_t nMedianTimePast)
Check if May 15th, 2024 protocol upgrade has activated.
bool IsMagneticAnomalyEnabled(const Consensus::Params &params, int32_t nHeight)
Check if Nov 15, 2018 HF has activated using block height.
bool IsDAAEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if DAA HF has activated.
bool IsPhononEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if May 15th, 2020 protocol upgrade has activated.
bool IsGravitonEnabled(const Consensus::Params &params, const CBlockIndex *pindexPrev)
Check if Nov 15th, 2019 protocol upgrade has activated.
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition blockindex.h:25
unsigned int nHeight
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
Parameters that influence chain consensus.
Definition params.h:34