execution: make ConfigureEvm independent of chainspec argument#10748
execution: make ConfigureEvm independent of chainspec argument#10748klkvr merged 13 commits intoparadigmxyz:mainfrom
ConfigureEvm independent of chainspec argument#10748Conversation
crates/ethereum/evm/src/lib.rs
Outdated
| #[non_exhaustive] | ||
| pub struct EthEvmConfig; | ||
| pub struct EthEvmConfig { | ||
| chain_spec: ChainSpec, |
There was a problem hiding this comment.
and this should likely be Arc
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
|
sorry guys, this was a comms issue on my end... I leave it up to @klkvr how to proceed since both prs are now very very similar |
crates/optimism/evm/src/lib.rs
Outdated
|
|
||
| /// Optimism-related EVM configuration. | ||
| #[derive(Debug, Default, Clone, Copy)] | ||
| #[derive(Debug, Default, Clone)] |
There was a problem hiding this comment.
this shouldn't have Default too, it causes failing tests
@mattsse I'm wondering if ChainSpec should have Default at all? feels like ChainSpec::empty() would be more explicit and safer
There was a problem hiding this comment.
@mattsse Should we open an issue about this?
No problem, I've learned doing this so no problem at all. @klkvr Let me know if you want to take it over or to move on here :) Maybe if we want to do something like |
|
@tcoratger there are some failing tests due to removed |
yep sure, no need to do this here |
Ok let me check that here taking your impl as ref |
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
@klkvr fixed |
…adigmxyz/reth#10748) Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Should close #10741