pub fn min_remote_for_height(
        network: Network,
        height: impl Into<Option<block::Height>>,
    ) -> Version {
        let height = height.into().unwrap_or(block::Height(0));
        let min_spec = Version::min_specified_for_height(network, height);

        // shut down if our own version is too old
        assert!(
            constants::CURRENT_NETWORK_PROTOCOL_VERSION >= min_spec,
            "Zebra does not implement the minimum specified {:?} protocol version for {:?} at {:?}",
            NetworkUpgrade::current(network, height),
            network,
            height,
        );

        max(min_spec, Version::initial_min_for_network(network))
    }
/// Returns the minimum remote node network protocol version for `network` and
/// `height`. Zebra disconnects from peers with lower versions.
///
/// # Panics
///
/// If we are incompatible with our own minimum remote protocol version.
Returns the minimum remote node network protocol version for `network` and
`height`. Zebra disconnects from peers with lower versions.
Returns the minimum remote node network protocol version for ` network ` and ` height ` . Zebra disconnects from peers with lower versions .
pub fn min_remote_for_height(
        network: Network,
        height: impl Into<Option<block::Height>>,
    ) -> Version {
        let height = height.into().unwrap_or(block::Height(0));
        let min_spec = Version::min_specified_for_height(network, height);
        // shut down if our own version is too old
        assert!(
            constants::CURRENT_NETWORK_PROTOCOL_VERSION >= min_spec,
            "Zebra does not implement the minimum specified {:?} protocol version for {:?} at {:?}",
            NetworkUpgrade::current(network, height),
            network,
            height,
        );
        max(min_spec, Version::initial_min_for_network(network))
    }
pub fn min_remote_for_height ( network : Network , height : impl Into < Option < block :: Height > > , ) -> Version { let height = height . into ( ) . unwrap_or ( block :: Height ( 0 ) ) ; let min_spec = Version :: min_specified_for_height ( network , height ) ; // shut down if our own version is too old assert ! ( constants CURRENT_NETWORK_PROTOCOL_VERSION min_spec " " NetworkUpgrade current ( network height ) network height ) ; max ( min_spec , Version :: initial_min_for_network ( network ) ) }
Returns the minimum remote node network protocol version for `network` and
`height`.
Returns the minimum remote node network protocol version for ` network ` and ` height ` .
network
Network
height
impl Into<Option<block::Height>>
panics
If we are incompatible with our own minimum remote protocol version.
If we are incompatible with our own minimum remote protocol version .