pub(crate) fn load(self) -> Result<ChainSpec, String> {
		Ok(match self {
			Alternative::Development => ChainSpec::from_genesis(
				"Development",
				"dev",
				|| testnet_genesis(
					vec![
						get_authority_keys_from_seed("Alice"),
					],
					get_account_id_from_seed::<sr25519::Public>("Alice"),
					vec![
						get_account_id_from_seed::<sr25519::Public>("Alice"),
						get_account_id_from_seed::<sr25519::Public>("Bob"),
						get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
						get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
					],
					true,
				),
				vec![],
				None,
				None,
				None,
				None
			),
			Alternative::LocalTestnet => ChainSpec::from_genesis(
				"Local Testnet",
				"local_testnet",
				|| testnet_genesis(
					vec![
						get_authority_keys_from_seed("Alice"),
						get_authority_keys_from_seed("Bob"),
					],
					get_account_id_from_seed::<sr25519::Public>("Alice"),
					vec![
						get_account_id_from_seed::<sr25519::Public>("Alice"),
						get_account_id_from_seed::<sr25519::Public>("Bob"),
						get_account_id_from_seed::<sr25519::Public>("Charlie"),
						get_account_id_from_seed::<sr25519::Public>("Dave"),
						get_account_id_from_seed::<sr25519::Public>("Eve"),
						get_account_id_from_seed::<sr25519::Public>("Ferdie"),
						get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
						get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
						get_account_id_from_seed::<sr25519::Public>("Charlie//stash"),
						get_account_id_from_seed::<sr25519::Public>("Dave//stash"),
						get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
						get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
					],
					true,
				),
				vec![],
				None,
				None,
				None,
				None
			),
		})
	}
/// Get an actual chain config from one of the alternatives.
Get an actual chain config from one of the alternatives.
Get an actual chain config from one of the alternatives .
pub(crate) fn load(self) -> Result<ChainSpec, String> {
		Ok(match self {
			Alternative::Development => ChainSpec::from_genesis(
				"Development",
				"dev",
				|| testnet_genesis(
					vec![
						get_authority_keys_from_seed("Alice"),
					],
					get_account_id_from_seed::<sr25519::Public>("Alice"),
					vec![
						get_account_id_from_seed::<sr25519::Public>("Alice"),
						get_account_id_from_seed::<sr25519::Public>("Bob"),
						get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
						get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
					],
					true,
				),
				vec![],
				None,
				None,
				None,
				None
			),
			Alternative::LocalTestnet => ChainSpec::from_genesis(
				"Local Testnet",
				"local_testnet",
				|| testnet_genesis(
					vec![
						get_authority_keys_from_seed("Alice"),
						get_authority_keys_from_seed("Bob"),
					],
					get_account_id_from_seed::<sr25519::Public>("Alice"),
					vec![
						get_account_id_from_seed::<sr25519::Public>("Alice"),
						get_account_id_from_seed::<sr25519::Public>("Bob"),
						get_account_id_from_seed::<sr25519::Public>("Charlie"),
						get_account_id_from_seed::<sr25519::Public>("Dave"),
						get_account_id_from_seed::<sr25519::Public>("Eve"),
						get_account_id_from_seed::<sr25519::Public>("Ferdie"),
						get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
						get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
						get_account_id_from_seed::<sr25519::Public>("Charlie//stash"),
						get_account_id_from_seed::<sr25519::Public>("Dave//stash"),
						get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
						get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
					],
					true,
				),
				vec![],
				None,
				None,
				None,
				None
			),
		})
	}
pub ( crate ) fn load ( self ) -> Result < ChainSpec , String > { Ok ( match self { Alternative :: Development => ChainSpec :: from_genesis ( " " , " " , | | testnet_genesis ( vec ! [ get_authority_keys_from_seed ( " " ) ] , get_account_id_from_seed :: < sr25519 :: Public > ( " " ) , vec ! [ get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) ] , true , ) , vec ! [ ] , None , None , None , None ) , Alternative :: LocalTestnet => ChainSpec :: from_genesis ( " " , " " , | | testnet_genesis ( vec ! [ get_authority_keys_from_seed ( " " ) get_authority_keys_from_seed ( " " ) ] , get_account_id_from_seed :: < sr25519 :: Public > ( " " ) , vec ! [ get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) get_account_id_from_seed sr25519 Public ( " " ) ] , true , ) , vec ! [ ] , None , None , None , None ) , } ) }
Get an actual chain config from one of the alternatives.
Get an actual chain config from one of the alternatives .
self
self