Remove extra Total difficulty argument for execution #13174
Labels
C-discussion
A discussion about the direction and design of the project
C-enhancement
New feature or request
Describe the feature
currently we always provide block + TTD for execution:
reth/crates/evm/execution-types/src/execute.rs
Lines 5 to 12 in f82a20a
this is only relevant for pre-merge blocks because the hardfork is determined by the total difficulty.
this only affects sepolia+mainnet.
it would simplify a lot of things if we could only rely on the
Block
as input.since all of these transition blocks are finalized and we sync in reverse we should be able to use the hardcoded transition blocks in the chainspec:
reth/crates/ethereum-forks/src/hardfork/ethereum.rs
Lines 74 to 93 in f82a20a
and use that when we determine the appropriate revm specid:
reth/crates/ethereum/evm/src/config.rs
Line 28 in f82a20a
so that:
reth/crates/ethereum-forks/src/forkcondition.rs
Lines 84 to 87 in f82a20a
no longer needs to check any total difficulty input
Additional context
No response
The text was updated successfully, but these errors were encountered: