Changeset View
Changeset View
Standalone View
Standalone View
src/versionbits.cpp
// Copyright (c) 2016 The Bitcoin Core developers | // Copyright (c) 2016 The Bitcoin Core 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 "versionbits.h" | #include "versionbits.h" | ||||
#include "consensus/params.h" | #include "consensus/params.h" | ||||
const struct BIP9DeploymentInfo | const struct BIP9DeploymentInfo | ||||
VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = { | VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = { | ||||
{ | { | ||||
/*.name =*/"testdummy", | /*.name =*/"testdummy", | ||||
/*.gbt_force =*/true, | /*.gbt_force =*/true, | ||||
}, | }, | ||||
{ | |||||
/*.name =*/"csv", | |||||
/*.gbt_force =*/true, | |||||
}, | |||||
}; | }; | ||||
ThresholdState AbstractThresholdConditionChecker::GetStateFor( | ThresholdState AbstractThresholdConditionChecker::GetStateFor( | ||||
const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, | const CBlockIndex *pindexPrev, const Consensus::Params ¶ms, | ||||
ThresholdConditionCache &cache) const { | ThresholdConditionCache &cache) const { | ||||
int nPeriod = Period(params); | int nPeriod = Period(params); | ||||
int nThreshold = Threshold(params); | int nThreshold = Threshold(params); | ||||
int64_t nTimeStart = BeginTime(params); | int64_t nTimeStart = BeginTime(params); | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |