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

feat(client/host): Remove debug_dbGet dependency #235

Open
clabby opened this issue Jun 11, 2024 · 0 comments
Open

feat(client/host): Remove debug_dbGet dependency #235

clabby opened this issue Jun 11, 2024 · 0 comments
Labels
A-client Area: client binary A-host Area: host binary K-feature Kind: feature M-help-wanted Meta: Extra attention is needed

Comments

@clabby
Copy link
Collaborator

clabby commented Jun 11, 2024

Overview

Currently, we have a dependency on hash-scheme geth's debug_dbGet endpoint to fetch specific trie node preimages by hash. For the most part, eth_getProof gives us what we need, except for in the special case of trie node deletions where a branch with one remaining child needs to be compacted.

Unless overlooking something, we will still need some sort of trie-node-preimage-by-hash fetcher, though we should explore options that are more robust.

Brainstorm

  • reth execution extension to index changed trie nodes
    • Only store merkle diffs; key by path. We should be able to consult the state at tip for trie paths that have not been altered within or after the block at which the trie path is being queried.
@clabby clabby added M-help-wanted Meta: Extra attention is needed K-feature Kind: feature A-host Area: host binary A-client Area: client binary labels Jun 11, 2024
@clabby clabby modified the milestones: Phase 3: Kona Client & Host, Phase 5: Nice to Have Jun 11, 2024
@refcell refcell removed this from the Maintenance: Nice to Have milestone Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-client Area: client binary A-host Area: host binary K-feature Kind: feature M-help-wanted Meta: Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants