Function sc_service::new_client[][src]

pub fn new_client<E, Block, RA>(
    backend: Arc<Backend<Block>>,
    executor: E,
    genesis_storage: &dyn BuildStorage,
    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 + RuntimeInfo

Create an instance of client backed by given backend.