Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/activation.h
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_CONSENSUS_ACTIVATION_H | #ifndef BITCOIN_CONSENSUS_ACTIVATION_H | ||||
#define BITCOIN_CONSENSUS_ACTIVATION_H | #define BITCOIN_CONSENSUS_ACTIVATION_H | ||||
#include <cstdint> | #include <cstdint> | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class Config; | class Config; | ||||
namespace Consensus { | |||||
struct Params; | |||||
} | |||||
/** Check if UAHF has activated. */ | /** Check if UAHF has activated. */ | ||||
bool IsUAHFenabled(const Config &config, const CBlockIndex *pindexPrev); | bool IsUAHFenabled(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexPrev); | |||||
/** Check if DAA HF has activated. */ | /** Check if DAA HF has activated. */ | ||||
bool IsDAAEnabled(const Config &config, const CBlockIndex *pindexPrev); | bool IsDAAEnabled(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexPrev); | |||||
/** Check if Nov 15, 2018 HF has activated using block height. */ | /** Check if Nov 15, 2018 HF has activated using block height. */ | ||||
bool IsMagneticAnomalyEnabled(const Config &config, int32_t nHeight); | bool IsMagneticAnomalyEnabled(const Consensus::Params ¶ms, int32_t nHeight); | ||||
/** Check if Nov 15, 2018 HF has activated using previous block index. */ | /** Check if Nov 15, 2018 HF has activated using previous block index. */ | ||||
bool IsMagneticAnomalyEnabled(const Config &config, | bool IsMagneticAnomalyEnabled(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexPrev); | const CBlockIndex *pindexPrev); | ||||
/** Check if Nov 15th, 2019 protocol upgrade has activated. */ | /** Check if Nov 15th, 2019 protocol upgrade has activated. */ | ||||
bool IsGravitonEnabled(const Config &config, const CBlockIndex *pindexPrev); | bool IsGravitonEnabled(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexPrev); | |||||
#endif // BITCOIN_CONSENSUS_ACTIVATION_H | #endif // BITCOIN_CONSENSUS_ACTIVATION_H |