Skip to main content

decode_peer_profile

Function decode_peer_profile 

Source
pub fn decode_peer_profile(buf: &[u8]) -> Option<PeerProfile>
Expand description

Parse a peer’s advertised PeerProfile. A version this build does not understand, or a truncated blob, yields None — the caller then falls back to the conservative defaults (never mis-decodes).