rebrand: kusama → dicle
- Replace all kusama/Kusama references with dicle/Dicle - Rename weight files from ksm_size to dcl_size - Update papi-tests files from ksm to dcl - Remove chain-specs/kusama.json files - cargo check --workspace successful (Finished output) - Update MAINNET_ROADMAP.md: FAZ 8 completed
This commit is contained in:
@@ -35,7 +35,7 @@ macro_rules! identify_chain {
|
||||
) => {
|
||||
match $chain {
|
||||
Chain::Pezkuwi => Err("Pezkuwi runtimes are currently not supported"),
|
||||
Chain::Kusama => Err("Kusama runtimes are currently not supported"),
|
||||
Chain::Dicle => Err("Dicle runtimes are currently not supported"),
|
||||
Chain::Pezkuwichain => {
|
||||
#[cfg(feature = "pezkuwichain-native")]
|
||||
{
|
||||
@@ -252,7 +252,7 @@ fn pezkuwichain_sign_call(
|
||||
.into()
|
||||
}
|
||||
|
||||
/// Generates inherent data for benchmarking Pezkuwi, Kusama, Zagros and Pezkuwichain.
|
||||
/// Generates inherent data for benchmarking Pezkuwi, Dicle, Zagros and Pezkuwichain.
|
||||
///
|
||||
/// Not to be used outside of benchmarking since it returns mocked values.
|
||||
pub fn benchmark_inherent_data(
|
||||
|
||||
@@ -232,7 +232,7 @@ where
|
||||
let disable_grandpa = config.disable_grandpa;
|
||||
let name = config.network.node_name.clone();
|
||||
let backoff_authoring_blocks = if !force_authoring_backoff
|
||||
&& (config.chain_spec.is_pezkuwi() || config.chain_spec.is_kusama())
|
||||
&& (config.chain_spec.is_pezkuwi() || config.chain_spec.is_dicle())
|
||||
{
|
||||
// the block authoring backoff is disabled by default on production networks
|
||||
None
|
||||
@@ -359,8 +359,8 @@ where
|
||||
IncomingRequest::get_config_receiver::<_, Network>(&req_protocol_names);
|
||||
net_config.add_request_response_protocol(cfg);
|
||||
|
||||
let grandpa_hard_forks = if config.chain_spec.is_kusama() {
|
||||
grandpa_support::kusama_hard_forks()
|
||||
let grandpa_hard_forks = if config.chain_spec.is_dicle() {
|
||||
grandpa_support::dicle_hard_forks()
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
@@ -422,7 +422,7 @@ where
|
||||
stagnant_check_mode: chain_selection_subsystem::StagnantCheckMode::PruneOnly,
|
||||
};
|
||||
|
||||
// Kusama + testnets get a higher threshold, we are conservative on Pezkuwi for now.
|
||||
// Dicle + testnets get a higher threshold, we are conservative on Pezkuwi for now.
|
||||
let fetch_chunks_threshold =
|
||||
if config.chain_spec.is_pezkuwi() { None } else { Some(FETCH_CHUNKS_THRESHOLD) };
|
||||
|
||||
|
||||
@@ -163,8 +163,8 @@ where
|
||||
.build(),
|
||||
);
|
||||
|
||||
let grandpa_hard_forks = if config.chain_spec.is_kusama() {
|
||||
grandpa_support::kusama_hard_forks()
|
||||
let grandpa_hard_forks = if config.chain_spec.is_dicle() {
|
||||
grandpa_support::dicle_hard_forks()
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
|
||||
@@ -78,8 +78,8 @@ pub fn pezkuwi_config() -> Result<GenericChainSpec, String> {
|
||||
GenericChainSpec::from_json_bytes(&include_bytes!("../chain-specs/pezkuwi.json")[..])
|
||||
}
|
||||
|
||||
pub fn kusama_config() -> Result<GenericChainSpec, String> {
|
||||
GenericChainSpec::from_json_bytes(&include_bytes!("../chain-specs/kusama.json")[..])
|
||||
pub fn dicle_config() -> Result<GenericChainSpec, String> {
|
||||
GenericChainSpec::from_json_bytes(&include_bytes!("../chain-specs/dicle.json")[..])
|
||||
}
|
||||
|
||||
pub fn zagros_config() -> Result<ZagrosChainSpec, String> {
|
||||
|
||||
@@ -64,7 +64,7 @@ where
|
||||
/// w3f validators and randomly selected validators from the latest session (at
|
||||
/// #1500988).
|
||||
#[cfg(feature = "full-node")]
|
||||
pub(crate) fn kusama_hard_forks() -> Vec<pezsc_consensus_grandpa::AuthoritySetHardFork<Block>> {
|
||||
pub(crate) fn dicle_hard_forks() -> Vec<pezsc_consensus_grandpa::AuthoritySetHardFork<Block>> {
|
||||
use pezsp_core::crypto::Ss58Codec;
|
||||
use std::str::FromStr;
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ pub enum Error {
|
||||
DatabasePathRequired,
|
||||
|
||||
#[cfg(feature = "full-node")]
|
||||
#[error("Expected at least one of pezkuwi, kusama, zagros or pezkuwichain runtime feature")]
|
||||
#[error("Expected at least one of pezkuwi, dicle, zagros or pezkuwichain runtime feature")]
|
||||
NoRuntime,
|
||||
|
||||
#[cfg(feature = "full-node")]
|
||||
@@ -249,8 +249,8 @@ pub enum Error {
|
||||
pub enum Chain {
|
||||
/// Pezkuwi.
|
||||
Pezkuwi,
|
||||
/// Kusama.
|
||||
Kusama,
|
||||
/// Dicle.
|
||||
Dicle,
|
||||
/// Pezkuwichain or one of its derivations.
|
||||
Pezkuwichain,
|
||||
/// Zagros.
|
||||
@@ -264,8 +264,8 @@ pub trait IdentifyVariant {
|
||||
/// Returns if this is a configuration for the `Pezkuwi` network.
|
||||
fn is_pezkuwi(&self) -> bool;
|
||||
|
||||
/// Returns if this is a configuration for the `Kusama` network.
|
||||
fn is_kusama(&self) -> bool;
|
||||
/// Returns if this is a configuration for the `Dicle` network.
|
||||
fn is_dicle(&self) -> bool;
|
||||
|
||||
/// Returns if this is a configuration for the `Zagros` network.
|
||||
fn is_zagros(&self) -> bool;
|
||||
@@ -287,8 +287,8 @@ impl IdentifyVariant for Box<dyn ChainSpec> {
|
||||
fn is_pezkuwi(&self) -> bool {
|
||||
self.id().starts_with("pezkuwi") || self.id().starts_with("hez")
|
||||
}
|
||||
fn is_kusama(&self) -> bool {
|
||||
self.id().starts_with("kusama") || self.id().starts_with("ksm")
|
||||
fn is_dicle(&self) -> bool {
|
||||
self.id().starts_with("dicle") || self.id().starts_with("dcl")
|
||||
}
|
||||
fn is_zagros(&self) -> bool {
|
||||
self.id().starts_with("zagros") || self.id().starts_with("wnd")
|
||||
@@ -305,8 +305,8 @@ impl IdentifyVariant for Box<dyn ChainSpec> {
|
||||
fn identify_chain(&self) -> Chain {
|
||||
if self.is_pezkuwi() {
|
||||
Chain::Pezkuwi
|
||||
} else if self.is_kusama() {
|
||||
Chain::Kusama
|
||||
} else if self.is_dicle() {
|
||||
Chain::Dicle
|
||||
} else if self.is_zagros() {
|
||||
Chain::Zagros
|
||||
} else if self.is_pezkuwichain() || self.is_versi() {
|
||||
@@ -421,7 +421,7 @@ pub fn new_chain_ops(
|
||||
|
||||
if config.chain_spec.is_pezkuwichain() || config.chain_spec.is_versi() {
|
||||
chain_ops!(config, None)
|
||||
} else if config.chain_spec.is_kusama() {
|
||||
} else if config.chain_spec.is_dicle() {
|
||||
chain_ops!(config, None)
|
||||
} else if config.chain_spec.is_zagros() {
|
||||
return chain_ops!(config, None);
|
||||
@@ -432,7 +432,7 @@ pub fn new_chain_ops(
|
||||
|
||||
/// Build a full node.
|
||||
///
|
||||
/// The actual "flavor", aka if it will use `Pezkuwi`, `Pezkuwichain` or `Kusama` is determined
|
||||
/// The actual "flavor", aka if it will use `Pezkuwi`, `Pezkuwichain` or `Dicle` is determined
|
||||
/// based on [`IdentifyVariant`] using the chain spec.
|
||||
#[cfg(feature = "full-node")]
|
||||
pub fn build_full<OverseerGenerator: OverseerGen>(
|
||||
|
||||
Reference in New Issue
Block a user