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

internal/ethapi: fix codehash lookup in eth_getProof #28357

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Oct 16, 2023

Fixes #28355 (I think), unconditionally looks up the codehash. Also refactors a bit.

@holiman
Copy link
Contributor Author

holiman commented Oct 16, 2023

And Now With Tests (TM)

Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman holiman added this to the 1.13.4 milestone Oct 17, 2023
@holiman holiman merged commit 8b99ad4 into ethereum:master Oct 17, 2023
2 checks passed
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
This change fixes ethereum#28355, where eth_getProof failed to return the correct codehash under certain conditions. This PR changes the logic to unconditionally look up the codehash, and also adds some more tests.
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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.

eth_getProof implementation returns invalid code hash
3 participants