fn branch_id_consistent(network: Network) {
    let branch_id_list = NetworkUpgrade::branch_id_list();
    let network_upgrades: HashSet<&NetworkUpgrade> = branch_id_list.keys().collect();

    for &network_upgrade in network_upgrades {
        let height = network_upgrade.activation_height(network);

        // Skip network upgrades that don't have activation heights yet
        if let Some(height) = height {
            assert_eq!(
                ConsensusBranchId::current(network, height),
                network_upgrade.branch_id()
            );
        }
    }
}
/// Check that the branch_id and current functions are consistent for `network`.
Check that the branch_id and current functions are consistent for `network`.
Check that the branch_id and current functions are consistent for ` network ` .
fn branch_id_consistent(network: Network) {
    let branch_id_list = NetworkUpgrade::branch_id_list();
    let network_upgrades: HashSet<&NetworkUpgrade> = branch_id_list.keys().collect();
    for &network_upgrade in network_upgrades {
        let height = network_upgrade.activation_height(network);
        // Skip network upgrades that don't have activation heights yet
        if let Some(height) = height {
            assert_eq!(
                ConsensusBranchId::current(network, height),
                network_upgrade.branch_id()
            );
        }
    }
}
fn branch_id_consistent ( network : Network ) { let branch_id_list = NetworkUpgrade :: branch_id_list ( ) ; let network_upgrades : HashSet < & NetworkUpgrade > = branch_id_list . keys ( ) . collect ( ) ; for & network_upgrade in network_upgrades { let height = network_upgrade . activation_height ( network ) ; // Skip network upgrades that don't have activation heights yet if let Some ( height ) = height { assert_eq ! ( ConsensusBranchId current ( network height ) network_upgrade branch_id ( ) ) ; } } }
Check that the branch_id and current functions are consistent for `network`.
Check that the branch_id and current functions are consistent for ` network ` .
network
Network