pub fn from_json_file(path: PathBuf) -> Result<Self, String> {
		let file = File::open(&path).map_err(|e| format!("Error opening spec file: {}", e))?;
		let spec = json::from_reader(file).map_err(|e| format!("Error parsing spec file: {}", e))?;
		Ok(ChainSpec {
			spec,
			genesis: GenesisSource::File(path),
		})
	}
/// Parse json file into a `ChainSpec`
Parse json file into a `ChainSpec`
Parse json file into a ` ChainSpec `
pub fn from_json_file(path: PathBuf) -> Result<Self, String> {
		let file = File::open(&path).map_err(|e| format!("Error opening spec file: {}", e))?;
		let spec = json::from_reader(file).map_err(|e| format!("Error parsing spec file: {}", e))?;
		Ok(ChainSpec {
			spec,
			genesis: GenesisSource::File(path),
		})
	}
pub fn from_json_file ( path : PathBuf ) -> Result < Self , String > { let file = File :: open ( & path ) . map_err ( | e | format ! ( " " e ) ) ? ; let spec = json :: from_reader ( file ) . map_err ( | e | format ! ( " " e ) ) ? ; Ok ( ChainSpec { spec , genesis : GenesisSource :: File ( path ) , } ) }
Parse json file into a `ChainSpec`
Parse json file into a ` ChainSpec `
path
PathBuf
path
PathBuf