Function sc_service::new_client
source · [−]pub fn new_client<E, Block, RA>(
settings: DatabaseSettings,
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>,
config: ClientConfig
) -> Result<(Client<Backend<Block>, LocalCallExecutor<Backend<Block>, E>, Block, RA>, Arc<Backend<Block>>), Error> where
Block: BlockT,
E: CodeExecutor + RuntimeInfo,
Expand description
Create an instance of db-backed client.