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(provider): create HashedStateReader for constructing reverts #12927

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Nov 27, 2024

Fixes #12926, but marking this a draft as it will conflict with #12607 once it's merged

@Rjected Rjected added S-blocked This cannot more forward until something else changes A-db Related to the database A-trie Related to Merkle Patricia Trie implementation labels Nov 27, 2024
@github-actions github-actions bot added the C-enhancement New feature or request label Nov 27, 2024
}

let hashed_accounts =
accounts.into_iter().map(|(address, info)| (keccak256(address), info)).collect();
Copy link
Contributor

Choose a reason for hiding this comment

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

If we want to support generic key hashing then we should use the KeyHasher from theStateCommitment type. After #12895 is merged you can replace keccak256 with self.hash_key (https://github.com/frisitano/reth/blob/776d374899b79f87ac2d80a954c02583aa22e08c/crates/storage/provider/src/providers/database/provider.rs#L386-L390).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database A-trie Related to Merkle Patricia Trie implementation C-enhancement New feature or request S-blocked This cannot more forward until something else changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace HashedPostState::from_reverts with provider method
2 participants