Function sc_service::client::new_with_backend
source · pub fn new_with_backend<B, E, Block, G, RA>(
backend: Arc<B>,
executor: E,
genesis_block_builder: G,
spawn_handle: Box<dyn SpawnNamed>,
prometheus_registry: Option<Registry>,
telemetry: Option<TelemetryHandle>,
config: ClientConfig<Block>,
) -> Result<Client<B, LocalCallExecutor<Block, B, E>, Block, RA>>where
E: CodeExecutor + RuntimeVersionOf,
G: BuildGenesisBlock<Block, BlockImportOperation = <B as Backend<Block>>::BlockImportOperation>,
Block: BlockT,
B: LocalBackend<Block> + 'static,
Expand description
Create a client with the explicitly provided backend. This is useful for testing backend implementations.