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): Account + Account storage hinting in TrieDB #228

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Conversation

clabby
Copy link
Collaborator

@clabby clabby commented Jun 10, 2024

Overview

Introcues the TrieDBHinter trait, which outlines an interface for sending hints to the host for trie account proofs and storage slot proofs. This enables kona-host to use eth_getProof rather than the very limited debug_dbGet for fetching most of the intermediate trie nodes during L2 execution.

Caveat: We do still need some sort of trie-node-by-hash function in order to fetch siblings within branches during node deletion. debug_dbGet works for hash-scheme geth nodes, though it is the only option at the moment. Might be time to build an indexer on reth to cache intermediate trie nodes.

@clabby clabby added K-feature Kind: feature A-mpt Area: kona-mpt crate A-host Area: host binary A-client Area: client binary labels Jun 10, 2024
@clabby clabby marked this pull request as draft June 10, 2024 02:44
@clabby clabby force-pushed the cl/trie-hints branch 2 times, most recently from 8495f68 to 3f457af Compare June 10, 2024 03:30
@clabby clabby force-pushed the cl/output-root-generation branch from bc40428 to 5bb3e43 Compare June 10, 2024 14:29
@clabby clabby marked this pull request as ready for review June 11, 2024 01:44
@clabby clabby added this to the Phase 3: Kona Client & Host milestone Jun 11, 2024
clabby added 2 commits June 11, 2024 13:00
Adds a function to the block executor that allows for generating the
current output root, based on the parent timestamp and current trie.
Introcues the `TrieDBHinter` trait, which outlines an interface for
sending hints to the host for trie account proofs and storage slot
proofs. This enables `kona-host` to use `eth_getProof` rather than the
very limited `debug_dbGet` for fetching account proofs during L2
execution.
@clabby clabby changed the base branch from cl/output-root-generation to main June 11, 2024 17:00
@clabby clabby added this pull request to the merge queue Jun 11, 2024
Merged via the queue into main with commit 59e2dd0 Jun 11, 2024
15 checks passed
This was referenced Jun 11, 2024
@github-actions github-actions bot mentioned this pull request Jun 22, 2024
@clabby clabby deleted the cl/trie-hints branch July 2, 2024 03:36
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 A-mpt Area: kona-mpt crate K-feature Kind: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants