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

eth: remove methods to retrieve uncle counts #445

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lightclient
Copy link
Member

@lightclient lightclient commented Jul 17, 2023

fixes (by avoidance) #114

Removes the following methods related to uncle counts:

  • eth_getUncleCountByBlockHash
  • eth_getUncleCountByBlockNumber

Post-merge, methods related to uncles don't make much sense since per EIP-3675 it is not possible for a block to have ommers (uncles).

@smartprogrammer93
Copy link
Contributor

No, i would keep it for retrieving this information for blocks before the merge. Once 4444 is implemented, only full archive nodes could keep it.

@lightclient
Copy link
Member Author

This information is still available via eth_getBlockBy*. Currently we don't even have eth_getUncleBy* methods, so seems a bit moot to have the count getters.

Copy link
Contributor

@smartprogrammer93 smartprogrammer93 left a comment

Choose a reason for hiding this comment

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

Yeah okay, makes sense

@lightclient
Copy link
Member Author

Not super attached to this - just an idea. Just because it is removed from the spec doesn't mean that clients won't continue to support it for a long time. Just no longer a requirement.

@ryanschneider
Copy link
Contributor

Also FWIW the existing uncle data available via RPC isn't enough to actually recreate the block fully from the JSONRPC data, since as you mentioned you need the eth_getUncleBy* methods, and those aren't currently in the spec.

So if anything, I'd advocate for adding in the uncle getters, which work totally fine w/o these count RPCs (you can always use eth_getBlockBy* and simply count the hashes in the uncle fields.

Of course I'm not saying we actually should include the uncle getters, just that I agree 100% these count getters are definitely not worth including.

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.

4 participants