Skip to content

Commit

Permalink
Add chainspec for tangle
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Sep 15, 2023
1 parent ce7b761 commit 2ccdb2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion standalone/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl SubstrateCli for Cli {
}

fn copyright_start_year() -> i32 {
2017
2021
}

fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> {
Expand All @@ -60,6 +60,9 @@ impl SubstrateCli for Cli {
"standalone-alpha" => Box::new(chain_spec::standalone_testnet_config(4006)?),
// generates the standalone spec for longterm testnet
"standalone" => Box::new(chain_spec::standalone_live_config(4006)?),
"tangle" => Box::new(chain_spec::ChainSpec::from_json_bytes(
&include_bytes!("../../../chainspecs/testnet/tangle-standalone.json")[..]
)?),
path =>
Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?),
})
Expand Down

0 comments on commit 2ccdb2f

Please sign in to comment.