Function sc_service::new_client
source ยท pub fn new_client<E, Block, RA, G>(
backend: Arc<Backend<Block>>,
executor: E,
genesis_block_builder: G,
fork_blocks: ForkBlocks<Block>,
bad_blocks: BadBlocks<Block>,
execution_extensions: ExecutionExtensions<Block>,
spawn_handle: Box<dyn SpawnNamed>,
prometheus_registry: Option<Registry>,
telemetry: Option<TelemetryHandle>,
config: ClientConfig<Block>,
) -> Result<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, E>, Block, RA>, Error>where
Block: BlockT,
E: CodeExecutor + RuntimeVersionOf,
G: BuildGenesisBlock<Block, BlockImportOperation = <Backend<Block> as Backend<Block>>::BlockImportOperation>,
Expand description
Create an instance of client backed by given backend.