MCPcopy Create free account
hub / github.com/UniqueNetwork/unique-chain / load_spec

Method load_spec

node/src/command.rs:52–60  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

50 }
51
52 fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> {
53 Ok(match id {
54 "dev" => Box::new(chain_spec::development_config()),
55 "" | "local" => Box::new(chain_spec::local_testnet_config()),
56 path => Box::new(chain_spec::ChainSpec::from_json_file(
57 std::path::PathBuf::from(path),
58 )?),
59 })
60 }
61}
62
63/// Parse and run command line arguments

Callers

nothing calls this directly

Calls 2

development_configFunction · 0.85
local_testnet_configFunction · 0.85

Tested by

no test coverage detected