Skip to main content

decode

Function decode 

Source
pub fn decode<'a>(
    frames: &[&'a [u8]],
    binding: PeerBinding,
    limits: WireLimits,
) -> Result<ReplicaMessage<'a>, WireError>
Expand description

Decode a bounded packet and reject mismatched voter/session/configuration.

This does not validate a claim against local disk state or count a quorum. Old views remain recognizable so the consensus core can apply its fencing rules.