Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/activation.h
Show All 10 Lines | |||||
class Config; | class Config; | ||||
/** Check if UAHF has activated. */ | /** Check if UAHF has activated. */ | ||||
bool IsUAHFenabled(const Config &config, const CBlockIndex *pindexPrev); | bool IsUAHFenabled(const Config &config, 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 Config &config, const CBlockIndex *pindexPrev); | ||||
/** Check if Nov 15, 2018 HF has activated. */ | /** Check if Nov 15, 2018 HF has activated using block height. */ | ||||
bool IsMagneticAnomalyEnabled(const Config &config, int32_t nHeight); | |||||
/** Check if Nov 15, 2018 HF has activated using previous block index. */ | |||||
bool IsMagneticAnomalyEnabled(const Config &config, | bool IsMagneticAnomalyEnabled(const Config &config, | ||||
const CBlockIndex *pindexPrev); | 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 | #endif // BITCOIN_CONSENSUS_ACTIVATION_H |