pub fn new_with_execution_strategy(
	execution_strategy: ExecutionStrategy
) -> client::Client<Backend, Executor, runtime::Block, runtime::RuntimeApi> {
	let backend = Arc::new(Backend::new_test(::std::u32::MAX, ::std::u64::MAX));
	let executor = NativeExecutor::new(None);
	let executor = LocalCallExecutor::new(backend.clone(), executor);

	let execution_strategies = ExecutionStrategies {
		syncing: execution_strategy,
		importing: execution_strategy,
		block_construction: execution_strategy,
		offchain_worker: execution_strategy,
		other: execution_strategy,
	};

	client::Client::new(
		backend,
		executor,
		genesis_storage(false),
		execution_strategies
	).expect("Creates new client")
}
/// Creates new client instance used for tests with the given api execution strategy.
Creates new client instance used for tests with the given api execution strategy.
Creates new client instance used for tests with the given api execution strategy .
pub fn new_with_execution_strategy(
	execution_strategy: ExecutionStrategy
) -> client::Client<Backend, Executor, runtime::Block, runtime::RuntimeApi> {
	let backend = Arc::new(Backend::new_test(::std::u32::MAX, ::std::u64::MAX));
	let executor = NativeExecutor::new(None);
	let executor = LocalCallExecutor::new(backend.clone(), executor);
	let execution_strategies = ExecutionStrategies {
		syncing: execution_strategy,
		importing: execution_strategy,
		block_construction: execution_strategy,
		offchain_worker: execution_strategy,
		other: execution_strategy,
	};
	client::Client::new(
		backend,
		executor,
		genesis_storage(false),
		execution_strategies
	).expect("Creates new client")
}
pub fn new_with_execution_strategy ( execution_strategy : ExecutionStrategy ) -> client :: Client < Backend , Executor , runtime :: Block , runtime :: RuntimeApi > { let backend = Arc :: new ( Backend :: new_test ( :: std :: u32 :: MAX , :: std :: u64 :: MAX ) ) ; let executor = NativeExecutor :: new ( None ) ; let executor = LocalCallExecutor :: new ( backend . clone ( ) , executor ) ; let execution_strategies = ExecutionStrategies { syncing : execution_strategy , importing : execution_strategy , block_construction : execution_strategy , offchain_worker : execution_strategy , other : execution_strategy , } ; client :: Client :: new ( backend , executor , genesis_storage ( false ) , execution_strategies ) . expect ( " " ) }
Creates new client instance used for tests with the given api execution strategy.
Creates new client instance used for tests with the given api execution strategy .
execution_strategy
ExecutionStrategy
execution_strategy
ExecutionStrategy