[][src]Function sc_service::client::light::new_light

pub fn new_light<B, S, RA, E>(
    backend: Arc<Backend<S, HashFor<B>>>,
    genesis_storage: &dyn BuildStorage,
    code_executor: E,
    spawn_handle: Box<dyn CloneableSpawn>,
    prometheus_registry: Option<Registry>
) -> ClientResult<Client<Backend<S, HashFor<B>>, GenesisCallExecutor<Backend<S, HashFor<B>>, LocalCallExecutor<Backend<S, HashFor<B>>, E>>, B, RA>> where
    B: BlockT,
    S: BlockchainStorage<B> + 'static,
    E: CodeExecutor + RuntimeInfo + Clone + 'static, 

Create an instance of light client.