Add bootnode code prior used in testnet-internal

Also performs the devnet/testnet differentation done since the testnet branch.
This commit is contained in:
Luke Parker
2024-04-11 14:33:23 -04:00
parent fcad402186
commit 1987983f88
6 changed files with 162 additions and 13 deletions

View File

@@ -40,7 +40,8 @@ impl SubstrateCli for Cli {
fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> {
match id {
"dev" | "devnet" => Ok(Box::new(chain_spec::development_config())),
"local" => Ok(Box::new(chain_spec::testnet_config())),
"local" => Ok(Box::new(chain_spec::local_config())),
"testnet" => Ok(Box::new(chain_spec::testnet_config())),
_ => panic!("Unknown network ID"),
}
}