Introduce new testnet ready for 0.10 (#1677)

* Introduce new testnet ready for 0.10

* Upgraded dd spec
This commit is contained in:
Gav Wood
2019-02-20 16:16:35 +01:00
committed by Arkadiy Paronyan
parent bd89003e43
commit c3e6572886
7 changed files with 103 additions and 102 deletions
+3 -3
View File
@@ -278,9 +278,9 @@ cargo run --release \-- \
Additional Substate CLI usage options are available and may be shown by running `cargo run \-- --help`.
=== Joining the Charred Cherry Testnet
=== Joining the Dried Danta Testnet
Charred Cherry is the new testnet for Substrate 1.0 beta. Please note that 1.0 beta is not compatible with the BBQ-Birch testnet. Ensure you have the dependencies listed above before compiling.
Dried Danta is the new testnet for Substrate 1.0 gamma. Please note that 1.0 gamma is not compatible with the BBQ-Birch or Charred-Cherry testnets. Ensure you have the dependencies listed above before compiling.
[source, shell]
----
@@ -308,7 +308,7 @@ For example, you can choose a custom node name:
[source, shell]
cargo run --release \-- --name my_custom_name
If you are successful, you will see your node syncing at https://telemetry.polkadot.io/#/Charred%20Cherry
If you are successful, you will see your node syncing at https://telemetry.polkadot.io/#/Dried%20Danta
== Documentation
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -32,9 +32,9 @@ const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
/// Specialised `ChainSpec`.
pub type ChainSpec = substrate_service::ChainSpec<GenesisConfig>;
/// Charred Cherry testnet generator
pub fn charred_cherry_config() -> Result<ChainSpec, String> {
ChainSpec::from_embedded(include_bytes!("../res/charred-cherry.json"))
/// Dried Danta testnet generator
pub fn dried_danta_config() -> Result<ChainSpec, String> {
ChainSpec::from_embedded(include_bytes!("../res/dried-danta.json"))
}
fn staging_testnet_config_genesis() -> GenesisConfig {
+4 -4
View File
@@ -37,8 +37,8 @@ pub enum ChainSpec {
Development,
/// Whatever the current runtime is, with simple Alice/Bob auths.
LocalTestnet,
/// The Charred Cherry testnet.
CharredCherry,
/// The Dried Danta testnet.
DriedDanta,
/// Whatever the current runtime is with the "global testnet" defaults.
StagingTestnet,
}
@@ -47,7 +47,7 @@ pub enum ChainSpec {
impl ChainSpec {
pub(crate) fn load(self) -> Result<chain_spec::ChainSpec, String> {
Ok(match self {
ChainSpec::CharredCherry => chain_spec::charred_cherry_config()?,
ChainSpec::DriedDanta => chain_spec::dried_danta_config()?,
ChainSpec::Development => chain_spec::development_config(),
ChainSpec::LocalTestnet => chain_spec::local_testnet_config(),
ChainSpec::StagingTestnet => chain_spec::staging_testnet_config(),
@@ -58,7 +58,7 @@ impl ChainSpec {
match s {
"dev" => Some(ChainSpec::Development),
"local" => Some(ChainSpec::LocalTestnet),
"" | "cherry" | "charred-cherry" => Some(ChainSpec::CharredCherry),
"" | "danta" | "dried-danta" => Some(ChainSpec::DriedDanta),
"staging" => Some(ChainSpec::StagingTestnet),
_ => None,
}