pub fn new_light() -> client::Client<LightBackend, LightExecutor, runtime::Block, runtime::RuntimeApi> {
	let storage = client_db::light::LightStorage::new_test();
	let blockchain = Arc::new(client::light::blockchain::Blockchain::new(storage));
	let backend = Arc::new(LightBackend::new(blockchain.clone()));
	let executor = NativeExecutor::new(None);
	let fetcher = Arc::new(LightFetcher);
	let remote_call_executor = client::light::call_executor::RemoteCallExecutor::new(blockchain.clone(), fetcher);
	let local_call_executor = client::LocalCallExecutor::new(backend.clone(), executor);
	let call_executor = LightExecutor::new(backend.clone(), remote_call_executor, local_call_executor);
	client::Client::new(backend, call_executor, genesis_storage(false), Default::default()).unwrap()
}
/// Creates new light client instance used for tests.
Creates new light client instance used for tests.
Creates new light client instance used for tests .
pub fn new_light() -> client::Client<LightBackend, LightExecutor, runtime::Block, runtime::RuntimeApi> {
	let storage = client_db::light::LightStorage::new_test();
	let blockchain = Arc::new(client::light::blockchain::Blockchain::new(storage));
	let backend = Arc::new(LightBackend::new(blockchain.clone()));
	let executor = NativeExecutor::new(None);
	let fetcher = Arc::new(LightFetcher);
	let remote_call_executor = client::light::call_executor::RemoteCallExecutor::new(blockchain.clone(), fetcher);
	let local_call_executor = client::LocalCallExecutor::new(backend.clone(), executor);
	let call_executor = LightExecutor::new(backend.clone(), remote_call_executor, local_call_executor);
	client::Client::new(backend, call_executor, genesis_storage(false), Default::default()).unwrap()
}
pub fn new_light ( ) -> client :: Client < LightBackend , LightExecutor , runtime :: Block , runtime :: RuntimeApi > { let storage = client_db :: light :: LightStorage :: new_test ( ) ; let blockchain = Arc :: new ( client :: light :: blockchain :: Blockchain :: new ( storage ) ) ; let backend = Arc :: new ( LightBackend :: new ( blockchain . clone ( ) ) ) ; let executor = NativeExecutor :: new ( None ) ; let fetcher = Arc :: new ( LightFetcher ) ; let remote_call_executor = client :: light :: call_executor :: RemoteCallExecutor :: new ( blockchain . clone ( ) , fetcher ) ; let local_call_executor = client :: LocalCallExecutor :: new ( backend . clone ( ) , executor ) ; let call_executor = LightExecutor :: new ( backend . clone ( ) , remote_call_executor , local_call_executor ) ; client :: Client :: new ( backend , call_executor , genesis_storage ( false ) , Default :: default ( ) ) . unwrap ( ) }
Creates new light client instance used for tests.
Creates new light client instance used for tests .