15template <
typename T, T x>
static constexpr bool is_minimum() {
16 using U =
typename std::underlying_type<T>::type;
17 return x == std::numeric_limits<U>::min();
21 is_minimum<Consensus::BuriedDeployment, Consensus::DEPLOYMENT_P2SH>(),
22 "p2sh is not minimum value for BuriedDeployment");
static constexpr bool is_minimum()
ValidDeployment only checks upper bounds for ensuring validity.