Skip to main content

validate_version_msg

Function validate_version_msg 

Source
fn validate_version_msg(
    msg: &PeerNetMsg,
    p: &HandshakeParams<'_>,
) -> Result<(PeerID, Vec<ProtocolID>)>
Expand description

Validates the given version msg. Returns the remote peer ID and the negotiated protocol set.