Skip to content

feat: JournalDb trait #13

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

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

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented Aug 13, 2025

Adds a new extension trait JournalDb that can ingest trevm block updates into the journal

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@prestwich prestwich marked this pull request as ready for review August 13, 2025 19:48
@prestwich prestwich requested a review from a team as a code owner August 13, 2025 19:48
/// and state.
///
/// This is intended to be used for tx simulation, and other purposes that
/// need fast state access WITHTOUT needing to retrieve historical data.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// need fast state access WITHTOUT needing to retrieve historical data.
/// need fast state access WITHOUT needing to retrieve historical data.

let journal_hash = update.journal_hash();

// TODO: remove the clone in future versions. This can be achieved by
// _NOT_ making a `BlockResult` and instead manually updating relevan
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// _NOT_ making a `BlockResult` and instead manually updating relevan
// _NOT_ making a `BlockResult` and instead manually updating relevant


// TODO: remove the clone in future versions. This can be achieved by
// _NOT_ making a `BlockResult` and instead manually updating relevan
// tables. However, this means diverging more fro the underlying reth
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// tables. However, this means diverging more fro the underlying reth
// tables. However, this means diverging more from the underlying reth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants