fix: re-enable the geth genesis format (#3116)

This commit is contained in:
Dan Cline
2023-06-13 03:27:02 -04:00
committed by GitHub
parent f55d88b8c4
commit e43455c2c3

View File

@ -40,10 +40,7 @@ pub fn genesis_value_parser(s: &str) -> eyre::Result<Arc<ChainSpec>, eyre::Error
_ => {
let raw = std::fs::read_to_string(PathBuf::from(shellexpand::full(s)?.into_owned()))?;
let genesis: AllGenesisFormats = serde_json::from_str(&raw)?;
match genesis {
AllGenesisFormats::Reth(chain_spec) => Arc::new(chain_spec),
_ => return Err(eyre::eyre!("Unexpected genesis format")),
}
Arc::new(genesis.into())
}
})
}