reth_ethereum_cli::chainspec

Function chain_value_parser

Source
pub fn chain_value_parser(s: &str) -> Result<Arc<ChainSpec>, Error>
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.