pub fn generate_protocol_config<Hash: AsRef<[u8]>>(
    protocol_id: &ProtocolId,
    genesis_hash: Hash,
    fork_id: Option<&str>
) -> ProtocolConfig
Expand description

Generates a ProtocolConfig for the block request protocol, refusing incoming requests.