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: remove difficulty field from admin_nodeInfo response #1811

Merged

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Dec 19, 2024

Motivation

The difficulty field is being removed from this part of the response in ethereum/go-ethereum#30744
See the new struct: https://github.com/ethereum/go-ethereum/blob/314e18193eeca3e47b627408da47e33132d72aa8/eth/protocols/eth/handler.go#L119-L126

Solution

Make the difficulty field optional

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Comment on lines +76 to +79
#[deprecated(
since = "0.8.2",
note = "The difficulty field of admin_nodeInfo is being removed from the response, see https://github.com/ethereum/go-ethereum/pull/30744"
)]
Copy link
Member

Choose a reason for hiding this comment

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

makes sense

@mattsse mattsse merged commit 0bbe032 into alloy-rs:main Dec 19, 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