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

refactor: extract optimism receipts hashing logic to reth-optimism-consensus #11230

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Sep 26, 2024

Closes #10713

Moves calculate_receipt_root_no_memo_optimism fn to reth-optimism-consensus. Changes root calculation functions on ExecutionOutcome and Receipts to accept a closure containing root calculation logic which is set to optimism-specific function when needed. We can change closure to a more complex hasher trait later if we decide to abstract root calculation

@github-actions github-actions bot added A-consensus Related to the consensus engine A-op-reth Related to Optimism and op-reth labels Sep 26, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

this is great!

@mattsse mattsse merged commit 353fd60 into main Sep 26, 2024
37 checks passed
@mattsse mattsse deleted the klkvr/move-op-receipts branch September 26, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Related to the consensus engine A-op-reth Related to Optimism and op-reth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move more optimism receipt checks to optimism crate
2 participants