pub fn new_client<E, S, Block, RA>(
	settings: DatabaseSettings,
	executor: E,
	genesis_storage: S,
	execution_strategies: ExecutionStrategies,
) -> Result<client::Client<Backend<Block>, client::LocalCallExecutor<Backend<Block>, E>, Block, RA>, client::error::Error>
	where
		Block: BlockT<Hash=H256>,
		E: CodeExecutor<Blake2Hasher> + RuntimeInfo,
		S: BuildStorage,
{
	let backend = Arc::new(Backend::new(settings, CANONICALIZATION_DELAY)?);
	let executor = client::LocalCallExecutor::new(backend.clone(), executor);
	Ok(client::Client::new(backend, executor, genesis_storage, execution_strategies)?)
}
/// Create an instance of db-backed client.
Create an instance of db-backed client.
Create an instance of db - backed client .
pub fn new_client<E, S, Block, RA>(
	settings: DatabaseSettings,
	executor: E,
	genesis_storage: S,
	execution_strategies: ExecutionStrategies,
) -> Result<client::Client<Backend<Block>, client::LocalCallExecutor<Backend<Block>, E>, Block, RA>, client::error::Error>
	where
		Block: BlockT<Hash=H256>,
		E: CodeExecutor<Blake2Hasher> + RuntimeInfo,
		S: BuildStorage,
{
	let backend = Arc::new(Backend::new(settings, CANONICALIZATION_DELAY)?);
	let executor = client::LocalCallExecutor::new(backend.clone(), executor);
	Ok(client::Client::new(backend, executor, genesis_storage, execution_strategies)?)
}
pub fn new_client < E , S , Block , RA > ( settings : DatabaseSettings , executor : E , genesis_storage : S , execution_strategies : ExecutionStrategies , ) -> Result < client :: Client < Backend < Block > , client :: LocalCallExecutor < Backend < Block > , E > , Block , RA > , client :: error :: Error > where Block : BlockT < Hash = H256 > , E : CodeExecutor < Blake2Hasher > + RuntimeInfo , S : BuildStorage , { let backend = Arc :: new ( Backend :: new ( settings , CANONICALIZATION_DELAY ) ? ) ; let executor = client :: LocalCallExecutor :: new ( backend . clone ( ) , executor ) ; Ok ( client :: Client :: new ( backend , executor , genesis_storage , execution_strategies ) ? ) }
Create an instance of db-backed client.
Create an instance of db - backed client .
settings
DatabaseSettings
executor
E
genesis_storage
S
execution_strategies
ExecutionStrategies
settings
DatabaseSettings
executor
E
genesis_storage
S
execution_strategies
ExecutionStrategies