mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: re-enable the geth genesis format (#3116)
This commit is contained in:
@ -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())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user