pub fn generate_protocol_config<Hash: AsRef<[u8]>, B: BlockT, N: NetworkBackend<B, <B as BlockT>::Hash>>(
protocol_id: &ProtocolId,
genesis_hash: Hash,
fork_id: Option<&str>,
inbound_queue: Sender<IncomingRequest>,
) -> N::RequestResponseProtocolConfig
Expand description
Generates a RequestResponseProtocolConfig
for the state request protocol, refusing incoming
requests.