pub fn default_with_spec(chain_spec: ChainSpec<G>) -> Self {
		let mut configuration = Configuration {
			impl_name: "parity-substrate",
			impl_version: "0.0.0",
			impl_commit: "",
			chain_spec,
			name: Default::default(),
			roles: Roles::FULL,
			transaction_pool: Default::default(),
			network: Default::default(),
			keystore_path: Default::default(),
			database_path: Default::default(),
			database_cache_size: Default::default(),
			keys: Default::default(),
			custom: Default::default(),
			pruning: PruningMode::default(),
			execution_strategies: Default::default(),
			rpc_http: None,
			rpc_ws: None,
			telemetry_endpoints: None,
			default_heap_pages: None,
			offchain_worker: Default::default(),
			force_authoring: false,
			disable_grandpa: false,
		};
		configuration.network.boot_nodes = configuration.chain_spec.boot_nodes().to_vec();

		configuration.telemetry_endpoints = configuration.chain_spec.telemetry_endpoints().clone();

		configuration
	}
/// Create default config for given chain spec.
Create default config for given chain spec.
Create default config for given chain spec .
pub fn default_with_spec(chain_spec: ChainSpec<G>) -> Self {
		let mut configuration = Configuration {
			impl_name: "parity-substrate",
			impl_version: "0.0.0",
			impl_commit: "",
			chain_spec,
			name: Default::default(),
			roles: Roles::FULL,
			transaction_pool: Default::default(),
			network: Default::default(),
			keystore_path: Default::default(),
			database_path: Default::default(),
			database_cache_size: Default::default(),
			keys: Default::default(),
			custom: Default::default(),
			pruning: PruningMode::default(),
			execution_strategies: Default::default(),
			rpc_http: None,
			rpc_ws: None,
			telemetry_endpoints: None,
			default_heap_pages: None,
			offchain_worker: Default::default(),
			force_authoring: false,
			disable_grandpa: false,
		};
		configuration.network.boot_nodes = configuration.chain_spec.boot_nodes().to_vec();
		configuration.telemetry_endpoints = configuration.chain_spec.telemetry_endpoints().clone();
		configuration
	}
pub fn default_with_spec ( chain_spec : ChainSpec < G > ) -> Self { let mut configuration = Configuration { impl_name : " " , impl_version : " " , impl_commit : " " , chain_spec , name : Default :: default ( ) , roles : Roles :: FULL , transaction_pool : Default :: default ( ) , network : Default :: default ( ) , keystore_path : Default :: default ( ) , database_path : Default :: default ( ) , database_cache_size : Default :: default ( ) , keys : Default :: default ( ) , custom : Default :: default ( ) , pruning : PruningMode :: default ( ) , execution_strategies : Default :: default ( ) , rpc_http : None , rpc_ws : None , telemetry_endpoints : None , default_heap_pages : None , offchain_worker : Default :: default ( ) , force_authoring : false , disable_grandpa : false , } ; configuration . network . boot_nodes = configuration . chain_spec . boot_nodes ( ) . to_vec ( ) ; configuration . telemetry_endpoints = configuration . chain_spec . telemetry_endpoints ( ) . clone ( ) ; configuration }
Create default config for given chain spec.
Create default config for given chain spec .
chain_spec
ChainSpec<G>
chain_spec
ChainSpec<G>