Function sc_subspace_block_relay::build_consensus_relay

source ยท
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, FarmerPublicKey>, Pool: TransactionPool<Block = Block> + 'static,
Expand description

Sets up the relay components.