reth::chainspec

Function chain_value_parser

Source
pub fn chain_value_parser(s: &str) -> Result<Arc<ChainSpec>, Report>
Expand description

Clap value parser for ChainSpecs.

The value parser matches either a known chain, the path to a json file, or a json formatted string in-memory. The json needs to be a Genesis struct.