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

core: remove unused ContractCode method from BlockChain #27186

Merged
merged 1 commit into from
May 2, 2023

Conversation

gballet
Copy link
Member

@gballet gballet commented Apr 28, 2023

Context : I'm looking into implementing stateless block execution in geth. One of the problems I see is that `(*state.Database).ContractCode expects the hash of the address instead of the address itself. This interface should be changed altogether in a different PR when I have figured all the details out.

While investigating the call tree for (*state.Database).ContractCode, I noticed that (*BlockChain).ContractCode isn't used anywhere, and it makes sense to remove it from the interface, lest someone starts using it in the future, and make the interface redesign more difficult.

So this PR simply removes that method.

Copy link
Contributor

@holiman holiman 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.11.7 milestone May 2, 2023
@holiman
Copy link
Contributor

holiman commented May 2, 2023

Please rebase

@holiman
Copy link
Contributor

holiman commented May 2, 2023

Ah nevermind

@holiman holiman merged commit 7f6c045 into ethereum:master May 2, 2023
shekhirin pushed a commit to shekhirin/go-ethereum that referenced this pull request Jun 6, 2023
devopsbo3 pushed 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
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.

3 participants