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/state, triedb/database: refactor state reader #30712

Merged
merged 2 commits into from
Nov 9, 2024

Conversation

rjl493456442
Copy link
Member

No description provided.

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

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

LGTM, no functional change, but makes it a bit easier on the eye

}

// StateDatabase warps the methods of a backing state store.
type StateDatabase interface {
Copy link
Member

Choose a reason for hiding this comment

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

Wait this is currently unused, right?
Is this going to be used in a follow-up pr?
Also the StateReader interface is not really needed since we only use it once, are we going to use it more in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, StateReader interface will be used in the future. This interface will be implemented by both triedb.StateReader and state.Snapshot.

triedb/database/database.go Outdated Show resolved Hide resolved
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

@rjl493456442 rjl493456442 added this to the 1.14.12 milestone Nov 9, 2024
@rjl493456442 rjl493456442 merged commit 74ef474 into ethereum:master Nov 9, 2024
3 checks passed
holiman added a commit that referenced this pull request Nov 19, 2024
Co-authored-by: Martin HS <martin@swende.se>
zfy0701 pushed a commit to sentioxyz/go-ethereum that referenced this pull request Dec 3, 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.

3 participants