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

pub fn new_light<B, S, RA, E>(
    backend: Arc<Backend<S, <<B as Block>::Header as Header>::Hashing>>,
    genesis_storage: &dyn BuildStorage,
    code_executor: E,
    spawn_handle: Box<dyn SpawnNamed + 'static, Global>,
    prometheus_registry: Option<Registry>,
    telemetry: Option<TelemetryHandle>
) -> Result<Client<Backend<S, <<B as Block>::Header as Header>::Hashing>, GenesisCallExecutor<Backend<S, <<B as Block>::Header as Header>::Hashing>, LocalCallExecutor<B, Backend<S, <<B as Block>::Header as Header>::Hashing>, E>>, B, RA>, Error> where
    E: CodeExecutor + RuntimeVersionOf + Clone + 'static,
    B: Block,
    S: Storage<B> + 'static, 
Expand description

Create an instance of light client.