5#ifndef BITCOIN_CONSENSUS_ACTIVATION_H
6#define BITCOIN_CONSENSUS_ACTIVATION_H
bool IsAxionEnabled(const Consensus::Params ¶ms, const CBlockIndex *pindexPrev)
Check if November 15th, 2020 protocol upgrade has activated.
bool IsWellingtonEnabled(const Consensus::Params ¶ms, int32_t nHeight)
Check if May 15th, 2023 protocol upgrade has activated.
bool IsCowperthwaiteEnabled(const Consensus::Params ¶ms, int32_t nHeight)
Check if Nov 15th, 2023 protocol upgrade has activated.
bool IsUAHFenabled(const Consensus::Params ¶ms, const CBlockIndex *pindexPrev)
Check if UAHF has activated.
bool IsAugustoEnabled(const Consensus::Params ¶ms, int64_t nMedianTimePast)
Check if May 15th, 2024 protocol upgrade has activated.
bool IsMagneticAnomalyEnabled(const Consensus::Params ¶ms, int32_t nHeight)
Check if Nov 15, 2018 HF has activated using block height.
bool IsDAAEnabled(const Consensus::Params ¶ms, const CBlockIndex *pindexPrev)
Check if DAA HF has activated.
bool IsPhononEnabled(const Consensus::Params ¶ms, const CBlockIndex *pindexPrev)
Check if May 15th, 2020 protocol upgrade has activated.
bool IsGravitonEnabled(const Consensus::Params ¶ms, 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,...
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...
Parameters that influence chain consensus.