fn compute_recieve_window(
    max_stake: u64,
    min_stake: u64,
    peer_type: ConnectionPeerType,
    peer_stake: u64
) -> Result<VarInt, VarIntBoundsExceeded>