referrerpolicy=no-referrer-when-downgrade

Function sc_service::client::new_in_mem

source ·
pub fn new_in_mem<E, Block, G, RA>(
    backend: Arc<Backend<Block>>,
    executor: E,
    genesis_block_builder: G,
    prometheus_registry: Option<Registry>,
    telemetry: Option<TelemetryHandle>,
    spawn_handle: Box<dyn SpawnNamed>,
    config: ClientConfig<Block>,
) -> Result<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, E>, Block, RA>>
where E: CodeExecutor + RuntimeVersionOf, Block: BlockT, G: BuildGenesisBlock<Block, BlockImportOperation = <Backend<Block> as Backend<Block>>::BlockImportOperation>,
Expand description

Create an instance of in-memory client.