Skip to main content

decode_wrapped_peer_config

Function decode_wrapped_peer_config 

Source
pub(crate) fn decode_wrapped_peer_config<TYPES: NodeType>(
    body: &[u8],
) -> Result<PeerConfig<TYPES>, ServerError>
Expand description

Like decode_wrapped_body, but for the ready route, whose inner payload is a raw PeerConfig::to_bytes blob rather than a second vbs-serialized value.