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

chore: add consensus helper methods to BlockHeader #1781

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Dec 10, 2024

Motivation

These helpers are useful in reth consensus methods for example, and had to be reimplemented.

Solution

Added these methods to the BlockHeader trait. Removes the methods from the concrete Header, making it breaking unless the trait is already imported.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mattsse mattsse merged commit ccd9b49 into alloy-rs:main Dec 10, 2024
26 checks passed
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