Skip to content

Commit

Permalink
Move testnet to Paseo
Browse files Browse the repository at this point in the history
include paseo chainspec
  • Loading branch information
simonsso committed Apr 4, 2024
1 parent 5399984 commit 9e23910
Show file tree
Hide file tree
Showing 2 changed files with 431 additions and 0 deletions.
424 changes: 424 additions & 0 deletions node/res/paseo.raw.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ impl SubstrateCli for RelayChainCli {
}

fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
use polkadot_cli::service;
if id == "paseo" {
let chain_spec = Box::new(service::GenericChainSpec::from_json_bytes(
&include_bytes!("../res/paseo.raw.json")[..],
)?);
return Ok(chain_spec as Box<dyn service::ChainSpec>);
}
polkadot_cli::Cli::from_iter([RelayChainCli::executable_name()].iter()).load_spec(id)
}
}
Expand Down

0 comments on commit 9e23910

Please sign in to comment.