-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible redundant reset HandlerCfg
#43
Comments
I don't follow, can you rephrase? |
For sure. On Evm configuration we are setup evm builder with odyssey/crates/node/src/evm.rs Lines 222 to 234 in 811f874
That means we are modifying handler config with: /// Handler for optimism
#[cfg(feature = "optimism")]
pub fn optimism<SPEC: Spec>() -> Self {
let mut handler = Self::mainnet::<SPEC>();
handler.cfg.is_optimism = true;
handler.append_handler_register(HandleRegisters::Plain(
crate::optimism::optimism_handle_register::<DB, EXT>,
));
handler
} Usage in reth for example here Question: do we need to do below, as we are already set that by calling odyssey/crates/node/src/evm.rs Lines 145 to 146 in 811f874
|
got it, you're correct |
Then same on reth revm optimism |
Not sure also about that
odyssey/crates/node/src/evm.rs
Lines 145 to 146 in 811f874
Because, Odyssey's evm used reth's trait
ConfigureEvm
with.optimism()
. So, we are set spec id here andis_optimism = true
onConfigureEvm::evm
(via optimism register handler) than do it again viaConfigureEvmEnv::fill_cfg_and_block_env
?The text was updated successfully, but these errors were encountered: