15 return error(
"%s: Upgrade index out of bounds: %d >= %d",
19 return error(
"%s: Requested state for upgrade %s at negative height %d",
28 if (it ==
llmqs.end()) {
UpgradeIndex
Index into Params.vUpgrades and NetworkUpgradeInfo.
boost::optional< T > Optional
Substitute for C++17 std::optional.
Optional< LLMQParams > GetLLMQParams(uint8_t llmqtype) const
bool NetworkUpgradeActive(int nHeight, Consensus::UpgradeIndex idx) const
Returns true if the given network upgrade is active as of the given block height.
std::map< LLMQType, LLMQParams > llmqs
bool error(const char *fmt, const Args &... args)
UpgradeState NetworkUpgradeState(int nHeight, const Consensus::Params ¶ms, Consensus::UpgradeIndex idx)
Checks the state of a given network upgrade based on block height.
const struct NUInfo NetworkUpgradeInfo[Consensus::MAX_NETWORK_UPGRADES]
General information about each network upgrade.