Skip to content

Commit

Permalink
Merge pull request #326 from gregdhill/feat/testnet-genesis
Browse files Browse the repository at this point in the history
feat: add raw testnet genesis to standalone node
  • Loading branch information
gregdhill authored Oct 19, 2021
2 parents 1c2f788 + ee28a39 commit a9b63b4
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 2 deletions.
144 changes: 144 additions & 0 deletions standalone/res/testnet.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions standalone/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ use sc_cli::Role;

fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
match id {
"beta" => Ok(Box::new(chain_spec::beta_testnet_config())),
"dev" => Ok(Box::new(chain_spec::development_config())),
"" => Ok(Box::new(chain_spec::local_config())),
"dev" => Ok(Box::new(chain_spec::development_config())),
"beta" => Ok(Box::new(chain_spec::beta_testnet_config())),
"testnet" => Ok(Box::new(chain_spec::ChainSpec::from_json_bytes(
&include_bytes!("../res/testnet.json")[..],
)?)),
path => Ok(Box::new(chain_spec::ChainSpec::from_json_file(path.into())?)),
}
}
Expand Down

0 comments on commit a9b63b4

Please sign in to comment.