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(exex): add parent hash to WAL block cache, index by hashes #11263

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

shekhirin
Copy link
Collaborator

Closes #11258

@shekhirin shekhirin added C-enhancement New feature or request A-exex Execution Extensions labels Sep 26, 2024
@shekhirin shekhirin marked this pull request as ready for review September 26, 2024 19:12
///
/// For each [`ExExNotification::ChainCommitted`] notification, there will be an entry per
/// block.
blocks: DashMap<B256, CachedBlock>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like we only access this for insert rn.
DashMap seems fine here, alternatively a rwlock would also work

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, and we will later access it when reading the WAL from ExExNotificationsWIthHead.

yeah, an RwLock would be easier, so we can have the whole BlockCache behind it, and not just one field inside

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hmm actually no, we will have only blocks field in the future so it's fine to have a dashmap here #11266 (comment)

@shekhirin shekhirin added this pull request to the merge queue Sep 27, 2024
Merged via the queue into main with commit 37b0c56 Sep 27, 2024
36 checks passed
@shekhirin shekhirin deleted the alexey/wal-block-cache-parent-hash branch September 27, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-exex Execution Extensions C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExEx WAL block cache should have parent hashes
2 participants