Constant zebra_chain::parameters::network_upgrade::CONSENSUS_BRANCH_IDS
source ยท pub(crate) const CONSENSUS_BRANCH_IDS: &[(NetworkUpgrade, ConsensusBranchId)];
Expand description
Network Upgrade Consensus Branch Ids.
Branch ids are the same for mainnet and testnet. If there is a testnet rollback after a bug, the branch id changes.
Branch ids were introduced in the Overwinter upgrade, so there are no Genesis or BeforeOverwinter branch ids.
This is actually a bijective map, but it is const, so we use a vector, and do the uniqueness check in the unit tests.