Skip to content
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

refactor: reduce Hardforks trait usage #13728

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Jan 8, 2025

Removes Hardforks supertrait for EthereumHardforks and OpHardforks. We're going to move those traits to a standalone evm repo and I'd prefer to not move dyn Hardfork stuff there.

We still need Hardforks trait for EIP-6122 implementation and in some other places where we don't yet operate purely on network-specific hardfork traits

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@@ -209,12 +209,10 @@ where
fn validate_header_with_total_difficulty(
&self,
header: &H,
total_difficulty: U256,
_total_difficulty: U256,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like we can technically drop this arg, but makes sense to keep I guess

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we should probably just merge logic from this fn into validate_header at this point

@klkvr klkvr added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 8f2ecc4 Jan 8, 2025
43 checks passed
@klkvr klkvr deleted the klkvr/refactor-chainspec-traits branch January 8, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants