10 #include <type_traits> 26 template<
typename T, T x>
29 using U =
typename std::underlying_type<T>::type;
30 return x == std::numeric_limits<U>::min();
33 static_assert(is_minimum<Consensus::BuriedDeployment, Consensus::DEPLOYMENT_HEIGHTINCB>(),
"heightincb is not minimum value for BuriedDeployment");
34 static_assert(is_minimum<Consensus::DeploymentPos, Consensus::DEPLOYMENT_TESTDUMMY>(),
"testdummy is not minimum value for DeploymentPos");
static constexpr bool is_minimum()
BIP 9 allows multiple softforks to be deployed in parallel.
VersionBitsCache g_versionbitscache
Global cache for versionbits deployment status.
constexpr bool ValidDeployment(BuriedDeployment dep)