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: mv proofs mod to reth-primitives-traits and split tests #13871

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

lean-apple
Copy link
Contributor

@lean-apple lean-apple commented Jan 19, 2025

Closes #13851.

  • Add duplicate reth-primitives-traits::proofs.

  • Move calculate_receipt_root_no_memo to ethereum-primitives::Receipt

  • Move tests check_transaction_root, check_withdrawals_root also to ethereum-primitives::receipt mod.

I want to do in another pr the complete removal of reth-primitives::proofs and update all the reth-primitives::proofs to reth-primitives-traits::proofs.

Comment on lines +210 to +213
/// Ethereum full block.
///
/// Withdrawals can be optionally included at the end of the RLP encoded message.
pub(crate) type Block<T = TransactionSigned> = alloy_consensus::Block<T>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I push this in that way, as it is only used for tests, otherwise I can probably put in a mod or lib

@lean-apple lean-apple marked this pull request as ready for review January 20, 2025 11:03
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.

lgtm, ty

@mattsse mattsse added this pull request to the merge queue Jan 20, 2025
@mattsse mattsse added the A-sdk Related to reth's use as a library label Jan 20, 2025
Merged via the queue into paradigmxyz:main with commit d2ad477 Jan 20, 2025
43 checks passed
@lean-apple lean-apple deleted the mv-proof-primitives-traits branch January 24, 2025 03:32
refcell pushed a commit to ethereum-optimism/op-reth that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move proofs mod to reth-primitives-traits
2 participants