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, cmd, accounts, eth, light, trie: seperate out CodeStore interface #28043

Closed
wants to merge 1 commit into from

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Sep 1, 2023

This PR separates the logic of maintaining contract code from the state.cachingDB, defining another struct called state.CoreDB.

It has these following benefits:

  • 1
  • 2
  • 3

Work in Progress


// ReadCode implements CodeReader, retrieving a particular contract's code
// with given contract address and code hash.
func (db *CodeDB) ReadCode(address common.Address, codeHash common.Hash) ([]byte, error) {
Copy link

Choose a reason for hiding this comment

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

The address is unused.

@fjl fjl closed this Mar 19, 2024
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.

None yet

3 participants