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

feat(rpc-types-engine): add forkchoice state zero helpers #1231

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Sep 3, 2024

Motivation

Returning an option whether or not the hash is zero, is useful when processing forkchoice states in reth, because the CL will often send all-zero forkchoice states.

Solution

This introduces helper methods which perform the zero check.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@Rjected Rjected changed the title feat: add forkchoice state zero helpers feat(engine): add forkchoice state zero helpers Sep 3, 2024
@Rjected Rjected changed the title feat(engine): add forkchoice state zero helpers feat(rpc-types-engine): add forkchoice state zero helpers Sep 3, 2024
@mattsse mattsse merged commit 6806537 into alloy-rs:main Sep 3, 2024
29 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