paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
3.53k stars 913 forks source link

add eth and optimism cli chainspec parser #9266

Open mattsse opened 5 days ago

mattsse commented 5 days ago

Add implementations of

https://github.com/paradigmxyz/reth/blob/d41aac380bfebbbfd4208dff6f8bd0ceda00e9b1/crates/cli/cli/src/chainspec.rs#L10-L10

for ethereum and optimism

basically:

https://github.com/paradigmxyz/reth/blob/d41aac380bfebbbfd4208dff6f8bd0ceda00e9b1/crates/node/core/src/args/utils.rs#L45-L45

but specifically for op and eth

first impl should just reuse this function as is

FYI @loocapro

loocapro commented 5 days ago

Up for it!