Skip to content

kv: add HasPrefix to TemporalTx and SharedDomains #14739

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

Merged
merged 1 commit into from
Apr 25, 2025
Merged

Conversation

taratorio
Copy link
Member

@taratorio taratorio commented Apr 24, 2025

adding a new HasPrefix(domain, prefix) (firstKey []byte, ok bool, err error) api to TemporalGetter

this will be used later on to implement eip-7610 HasStorage check in the various StateReader implementations that we have

in a subsequent PR I will also add an implementation for HasPrefix for the remote kv

note: the reason for firstKey return is that in ReaderParallelV3 we record the read list so that will be used there to record a touch of the first storage slot (this is a bit of a question mark - not sure if we have to do it or not yet - waiting for response from Alex - but either way the API is probably most useful like this)

@AskAlexSharov AskAlexSharov merged commit b758278 into main Apr 25, 2025
12 checks passed
@AskAlexSharov AskAlexSharov deleted the eip-7610-v2 branch April 25, 2025 01:46
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.

2 participants