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

chore: move proof types and root functions from primitives/proofs into reth-trie-common #8724

Merged
merged 23 commits into from
Jun 13, 2024

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Jun 10, 2024

#8674

  • rename reth-trie-types to reth-trie-common
  • moves root calculation functions from primitives/proofs to reth-trie-common (this is the reason for the crate renaming)
  • moves AccountProof and StorageProof into reth-trie-common by using reth-primitives-traits::Account.
  • revert IntoTrieAccount changes

@joshieDo joshieDo added the C-enhancement New feature or request label Jun 10, 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.

we should think about the dep graph a bit more before we rush this and introduce generics due to dependencies.

atm we have two kinds of primitive types:

  1. lower level types that are shared by OP and Eth, for example Account
  2. types that are different: Transaction/Receipt

perhaps a more reasonable approach is:
isolate 1. first (I'm fine if we temporarily moving these to the primitives-traits as well)

primitives-traits will then eventually become the new primitives

@@ -0,0 +1,117 @@
//! Common root computation functions.
Copy link
Collaborator

Choose a reason for hiding this comment

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

this makese sense

Base automatically changed from joshie/trait-acc to main June 11, 2024 16:15
@joshieDo joshieDo requested a review from onbjerg as a code owner June 11, 2024 16:53
@joshieDo joshieDo requested a review from mattsse June 11, 2024 16:55
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.

progress 🫡

@joshieDo joshieDo enabled auto-merge June 13, 2024 15:03
@joshieDo joshieDo added this pull request to the merge queue Jun 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 13, 2024
@mattsse mattsse added this pull request to the merge queue Jun 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 13, 2024
@mattsse mattsse enabled auto-merge June 13, 2024 16:27
@mattsse mattsse added this pull request to the merge queue Jun 13, 2024
Merged via the queue into main with commit 76c8f48 Jun 13, 2024
30 checks passed
@mattsse mattsse deleted the joshie/proof-acc branch June 13, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants