mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
Add paseo network --chain option and chain spec (#2668)
After some conversations around the topic of launching a community staging network ( [forum post 1](https://forum.polkadot.network/t/a-new-test-network-for-polkadot/4325), [forum post 2](https://forum.polkadot.network/t/the-new-polkadot-community-testnet/4956) ). And Erin having introduced the community testnet in the [last episode of AAG](https://www.youtube.com/watch?v=uzJEGVG78_E&t=1612s). I would like to include the `paseo` options as one of the chains available for launching using the polkadot node. Note that the chain spec implementation is not yet included at this stage. UPDATE: Merged master with rebase enabled and introduced quite some noise in this PR. Relevant changes are in: - `polkadot/node/service/chain-specs/paseo.json` - `polkadot/node/service/src/chain_spec.rs` - `polkadot/cli/src/command.rs` --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com> Co-authored-by: Alexander Theißen <alex.theissen@me.com> Co-authored-by: Sergej Sakac <73715684+Szegoo@users.noreply.github.com> Co-authored-by: Dónal Murray <donal.murray@parity.io> Co-authored-by: Adel Arja <adelarja@gmail.com> Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> Co-authored-by: Ross Bulat <ross@parity.io> Co-authored-by: Francisco Gamundi <52399794+fgamundi@users.noreply.github.com> Co-authored-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
committed by
GitHub
parent
2dfd7b92d9
commit
008e0fe45e
@@ -91,6 +91,7 @@ impl SubstrateCli for Cli {
|
|||||||
"polkadot" => Box::new(service::chain_spec::polkadot_config()?),
|
"polkadot" => Box::new(service::chain_spec::polkadot_config()?),
|
||||||
name if name.starts_with("polkadot-") && !name.ends_with(".json") =>
|
name if name.starts_with("polkadot-") && !name.ends_with(".json") =>
|
||||||
Err(format!("`{name}` is not supported anymore as the polkadot native runtime no longer part of the node."))?,
|
Err(format!("`{name}` is not supported anymore as the polkadot native runtime no longer part of the node."))?,
|
||||||
|
"paseo" => Box::new(service::chain_spec::paseo_config()?),
|
||||||
"rococo" => Box::new(service::chain_spec::rococo_config()?),
|
"rococo" => Box::new(service::chain_spec::rococo_config()?),
|
||||||
#[cfg(feature = "rococo-native")]
|
#[cfg(feature = "rococo-native")]
|
||||||
"dev" | "rococo-dev" => Box::new(service::chain_spec::rococo_development_config()?),
|
"dev" | "rococo-dev" => Box::new(service::chain_spec::rococo_development_config()?),
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -102,6 +102,10 @@ pub fn westend_config() -> Result<WestendChainSpec, String> {
|
|||||||
WestendChainSpec::from_json_bytes(&include_bytes!("../chain-specs/westend.json")[..])
|
WestendChainSpec::from_json_bytes(&include_bytes!("../chain-specs/westend.json")[..])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn paseo_config() -> Result<GenericChainSpec, String> {
|
||||||
|
GenericChainSpec::from_json_bytes(&include_bytes!("../chain-specs/paseo.json")[..])
|
||||||
|
}
|
||||||
|
|
||||||
pub fn rococo_config() -> Result<RococoChainSpec, String> {
|
pub fn rococo_config() -> Result<RococoChainSpec, String> {
|
||||||
RococoChainSpec::from_json_bytes(&include_bytes!("../chain-specs/rococo.json")[..])
|
RococoChainSpec::from_json_bytes(&include_bytes!("../chain-specs/rococo.json")[..])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user