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(trie): sorted iterators for updated hashed state entries #9516

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

rkrasiuk
Copy link
Member

Description

ExecutedBlock must contain sorted hashed & trie entries instead of plain ones since they should be used for root computation:

pub struct ExecutedBlock {
block: Arc<SealedBlock>,
senders: Arc<Vec<Address>>,
execution_output: Arc<ExecutionOutcome>,
hashed_state: Arc<HashedPostState>,
trie: Arc<TrieUpdates>,
}

Implement methods that return sorted iterators for HashedPostStateSorted in order to change database writing types.

@rkrasiuk rkrasiuk added C-enhancement New feature or request A-db Related to the database A-trie Related to Merkle Patricia Trie implementation labels Jul 15, 2024
@rkrasiuk rkrasiuk enabled auto-merge July 15, 2024 13:28
@rkrasiuk rkrasiuk added this pull request to the merge queue Jul 15, 2024
Merged via the queue into main with commit b1da0f7 Jul 15, 2024
33 checks passed
@rkrasiuk rkrasiuk deleted the rkrasiuk/sorted-hashed-state-utility-accessors branch July 15, 2024 13:54
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants