Support custom trusted setups for revm #4649
Labels
C-discussion
A discussion about the direction and design of the project
C-enhancement
New feature or request
M-prevent-stale
Prevents old inactive issues/PRs from being closed due to inactivity
Describe the feature
the cli supports a custom trusted setup file:
reth/bin/reth/src/node/mod.rs
Lines 149 to 151 in 11ee5d7
the KzgSettings can be configured in revm's
CfgEnv
, by default it uses mainnet trusted setupIn order to support other trusted setups we need a way to configure CfgEnv, everywhere we're using
CfgEnv::default()
This could be solved with a static OnceBox, that holds the KzgSettings that should be used, similar to
reth/crates/primitives/src/constants/eip4844.rs
Lines 40 to 45 in 11ee5d7
TODO
TargetKzgSettings
(naming tbd) (maybe even a static AtomicBool that indicates custom trusted setup)wdyt @Rjected @rakita ?
@Rjected do we even expect that a custom trusted setup is required/useful, if not we could get rid of that option which would make this redundant
Additional context
No response
The text was updated successfully, but these errors were encountered: