Skip to content

Conversation

@pablodeymo
Copy link
Contributor

@pablodeymo pablodeymo commented Nov 12, 2025

Motivation

Adds a code cache to rocksdb, evicting the least used entries if size goes over 64mb

@github-actions github-actions bot added the L1 Ethereum client label Nov 12, 2025
@pablodeymo pablodeymo changed the title feat(l1): Code cache rocksdb feat(l1): code cache rocksdb Nov 12, 2025
@github-actions
Copy link

github-actions bot commented Nov 12, 2025

Lines of code report

Total lines added: 69
Total lines removed: 0
Total lines changed: 69

Detailed view
+-------------------------------------------+-------+------+
| File                                      | Lines | Diff |
+-------------------------------------------+-------+------+
| ethrex/crates/common/types/account.rs     | 228   | +6   |
+-------------------------------------------+-------+------+
| ethrex/crates/storage/store_db/rocksdb.rs | 1715  | +63  |
+-------------------------------------------+-------+------+

@edg-l edg-l marked this pull request as ready for review November 18, 2025 10:51
@edg-l edg-l requested a review from a team as a code owner November 18, 2025 10:51
@ethrex-project-sync ethrex-project-sync bot moved this to In Review in ethrex_l1 Nov 18, 2025
Copilot AI review requested due to automatic review settings November 19, 2025 13:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Collaborator

@jrchatruc jrchatruc left a comment

Choose a reason for hiding this comment

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

Blocking merge until we make sure we are properly managing any cache invalidation issues (contracts being destroyed, etc)

@github-project-automation github-project-automation bot moved this from In Review to In Progress in ethrex_l1 Nov 19, 2025
@jrchatruc jrchatruc dismissed their stale review November 19, 2025 14:09

Addressed here 476ce99

@github-project-automation github-project-automation bot moved this from In Progress to In Review in ethrex_l1 Nov 19, 2025
@jrchatruc jrchatruc enabled auto-merge November 19, 2025 14:10
@jrchatruc jrchatruc added this pull request to the merge queue Nov 19, 2025
Merged via the queue into main with commit 6ef14c8 Nov 19, 2025
44 checks passed
@jrchatruc jrchatruc deleted the code_cache_rocksdb branch November 19, 2025 15:11
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants