Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/activation.h
- This file was added.
// Copyright (c) 2018 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#ifndef BITCOIN_CONSENSUS_ACTIVATION_H | |||||
#define BITCOIN_CONSENSUS_ACTIVATION_H | |||||
#include <cstdint> | |||||
class CBlockIndex; | |||||
class Config; | |||||
/** Check if UAHF has activated. */ | |||||
bool IsUAHFenabled(const Config &config, const CBlockIndex *pindexPrev); | |||||
/** Check if DAA HF has activated. */ | |||||
bool IsDAAEnabled(const Config &config, const CBlockIndex *pindexPrev); | |||||
/** Check if Nov 15, 2018 HF has activated. */ | |||||
bool IsMagneticAnomalyEnabled(const Config &config, | |||||
const CBlockIndex *pindexPrev); | |||||
/** | |||||
* Also check if Nov 15, 2018 HF has activated, but with an API that isn't as | |||||
* safe. | |||||
*/ | |||||
bool IsMagneticAnomalyEnabled(const Config &config, int64_t nMedianTimePast); | |||||
#endif // BITCOIN_CONSENSUS_ACTIVATION_H |