Function sc_authority_discovery::new_worker_and_service_with_config [−][src]
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: ProvideRuntimeApi<Block> + Send + Sync + 'static + HeaderBackend<Block>,
<Client as ProvideRuntimeApi<Block>>::Api: AuthorityDiscoveryApi<Block>,
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.