referrerpolicy=no-referrer-when-downgrade

Function cumulus_client_service::start_collator

source ·
pub async fn start_collator<'a, Block, BS, Client, Backend, RCInterface, Spawner>(
    __arg0: StartCollatorParams<'a, Block, BS, Client, RCInterface, Spawner>,
) -> Result<()>
where Block: BlockT, BS: BlockBackend<Block> + Send + Sync + 'static, Client: Finalizer<Block, Backend> + UsageProvider<Block> + HeaderBackend<Block> + Send + Sync + BlockBackend<Block> + BlockchainEvents<Block> + ProvideRuntimeApi<Block> + 'static, Client::Api: CollectCollationInfo<Block>, for<'b> &'b Client: BlockImport<Block>, Spawner: SpawnNamed + Clone + Send + Sync + 'static, RCInterface: RelayChainInterface + Clone + 'static, Backend: BackendT<Block> + 'static,
👎Deprecated: use start_relay_chain_tasks instead
Expand description

Start a collator node for a parachain.

A collator is similar to a validator in a normal blockchain. It is responsible for producing blocks and sending the blocks to a parachain validator for validation and inclusion into the relay chain.