Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/activation.cpp
// 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. | ||||
#include "activation.h" | #include <consensus/activation.h> | ||||
#include "chain.h" | #include <chain.h> | ||||
#include "chainparams.h" | #include <chainparams.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "util.h" | #include <util.h> | ||||
static bool IsUAHFenabled(const Config &config, int nHeight) { | static bool IsUAHFenabled(const Config &config, int nHeight) { | ||||
return nHeight >= config.GetChainParams().GetConsensus().uahfHeight; | return nHeight >= config.GetChainParams().GetConsensus().uahfHeight; | ||||
} | } | ||||
bool IsUAHFenabled(const Config &config, const CBlockIndex *pindexPrev) { | bool IsUAHFenabled(const Config &config, const CBlockIndex *pindexPrev) { | ||||
if (pindexPrev == nullptr) { | if (pindexPrev == nullptr) { | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |