pub fn new_worker_and_service_with_config<Client, Network, Block, DhtEventStream>(
    config: WorkerConfig,
    client: Arc<Client>,
    network: Arc<Network>,
    dht_event_rx: DhtEventStream,
    role: Role,
    prometheus_registry: Option<Registry>
) -> (Worker<Client, Network, Block, DhtEventStream>, Service)where
    Block: BlockT + Unpin + 'static,
    Network: NetworkProvider,
    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.