pub fn build_consensus_relay<Block, Client, Pool>(
network: Arc<NetworkWrapper>,
client: Arc<Client>,
pool: Arc<Pool>,
registry: Option<&Registry>,
) -> Result<BlockRelayParams<Block, NetworkWorker<Block, <Block as BlockT>::Hash>>, BlockRelayConfigurationError>where
Block: BlockT,
Client: HeaderBackend<Block> + BlockBackend<Block> + ProvideRuntimeApi<Block> + 'static,
Client::Api: SubspaceApi<Block, PublicKey>,
Pool: TransactionPool<Block = Block> + 'static,
Expand description
Sets up the relay components.