mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
A new substrate-node testnet for 1.0beta (#1280)
* Add new testnet * Rename * Update lib.rs * Rename ctd. * Remove BBQ Birch Testnet reference from Readme * Fix comment * Update keys
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -31,9 +31,9 @@ const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
|
||||
/// Specialised `ChainSpec`.
|
||||
pub type ChainSpec = substrate_service::ChainSpec<GenesisConfig>;
|
||||
|
||||
/// BBQ birch testnet generator
|
||||
pub fn bbq_birch_config() -> Result<ChainSpec, String> {
|
||||
ChainSpec::from_embedded(include_bytes!("../res/bbq-birch.json"))
|
||||
/// Charred Cherry testnet generator
|
||||
pub fn charred_cherry_config() -> Result<ChainSpec, String> {
|
||||
ChainSpec::from_embedded(include_bytes!("../res/charred-cherry.json"))
|
||||
}
|
||||
|
||||
fn staging_testnet_config_genesis() -> GenesisConfig {
|
||||
@@ -83,15 +83,15 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
|
||||
current_session_reward: 0,
|
||||
validator_count: 7,
|
||||
sessions_per_era: 12,
|
||||
bonding_duration: 1 * DAYS,
|
||||
bonding_duration: 60 * MINUTES,
|
||||
offline_slash_grace: 4,
|
||||
minimum_validator_count: 4,
|
||||
}),
|
||||
democracy: Some(DemocracyConfig {
|
||||
launch_period: 5 * MINUTES, // 1 day per public referendum
|
||||
voting_period: 5 * MINUTES, // 3 days to discuss & vote on an active referendum
|
||||
launch_period: 10 * MINUTES, // 1 day per public referendum
|
||||
voting_period: 10 * MINUTES, // 3 days to discuss & vote on an active referendum
|
||||
minimum_deposit: 50 * DOLLARS, // 12000 as the minimum deposit for a referendum
|
||||
public_delay: 0,
|
||||
public_delay: 10 * MINUTES,
|
||||
max_lock_periods: 6,
|
||||
}),
|
||||
council_seats: Some(CouncilSeatsConfig {
|
||||
|
||||
@@ -64,8 +64,8 @@ pub enum ChainSpec {
|
||||
Development,
|
||||
/// Whatever the current runtime is, with simple Alice/Bob auths.
|
||||
LocalTestnet,
|
||||
/// The BBQ Birch testnet.
|
||||
BbqBirch,
|
||||
/// The Charred Cherry testnet.
|
||||
CharredCherry,
|
||||
/// Whatever the current runtime is with the "global testnet" defaults.
|
||||
StagingTestnet,
|
||||
}
|
||||
@@ -74,7 +74,7 @@ pub enum ChainSpec {
|
||||
impl ChainSpec {
|
||||
pub(crate) fn load(self) -> Result<chain_spec::ChainSpec, String> {
|
||||
Ok(match self {
|
||||
ChainSpec::BbqBirch => chain_spec::bbq_birch_config()?,
|
||||
ChainSpec::CharredCherry => chain_spec::charred_cherry_config()?,
|
||||
ChainSpec::Development => chain_spec::development_config(),
|
||||
ChainSpec::LocalTestnet => chain_spec::local_testnet_config(),
|
||||
ChainSpec::StagingTestnet => chain_spec::staging_testnet_config(),
|
||||
@@ -85,7 +85,7 @@ impl ChainSpec {
|
||||
match s {
|
||||
"dev" => Some(ChainSpec::Development),
|
||||
"local" => Some(ChainSpec::LocalTestnet),
|
||||
"" | "bbq-birch" => Some(ChainSpec::BbqBirch),
|
||||
"" | "cherry" | "charred-cherry" => Some(ChainSpec::CharredCherry),
|
||||
"staging" => Some(ChainSpec::StagingTestnet),
|
||||
_ => None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user