referrerpolicy=no-referrer-when-downgrade
pub fn new_worker_and_service_with_config<Client, Block, DhtEventStream>(
    config: WorkerConfig,
    client: Arc<Client>,
    network: Arc<dyn NetworkProvider>,
    dht_event_rx: DhtEventStream,
    role: Role,
    prometheus_registry: Option<Registry>,
) -> (Worker<Client, Block, DhtEventStream>, Service)
where Block: BlockT + Unpin + 'static, Client: AuthorityDiscovery<Block> + 'static, DhtEventStream: Stream<Item = DhtEvent> + Unpin,
Expand description

Same as new_worker_and_service but with support for providing the config.

When in doubt use new_worker_and_service as it will use the default configuration.