Parse Optimism hardforks from Genesis in op-reth --chain genesis.json
#7043
Labels
A-op-reth
Related to Optimism and op-reth
C-enhancement
New feature or request
M-prevent-stale
Prevents old inactive issues/PRs from being closed due to inactivity
Describe the feature
Currently,
op-reth
doesn't parse Optimism hardforks from Genesis files, with common chains like Base's being hardcoded.This leads to several execution errors for custom OP chains (like executing a Canyon tx with a Shanghai executor).
Adding this feature will make it easier to run
op-reth
for most OP chains, including devnets!Additional context
The relevant code is here:
reth/crates/node-core/src/args/utils.rs
Lines 66 to 102 in 91c7dd0
Ideally,
alloy
's Genesis would parsebedrockBlock
,regolithTime
, etc., for us to updateimpl From<Genesis> for ChainSpec
accordingly.Nevertheless, they have strong reasons not to: alloy-rs/alloy#243.
So, we had to use this current patch to support our custom OP devnet:
Perhaps the actual solution is to build
alloy-op
or extend theGenesis
type here inreth
?We'd love to contribute PRs once a firm direction is decided :).
The text was updated successfully, but these errors were encountered: