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

feat(provider): use NodeTypes on DatabaseProvider instead #12166

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Oct 29, 2024

With both #12157 and #11872 requiring new NodePrimitives associated types as generics in DatabaseProvider, it makes sense to have it accept NodePrimitives instead

pub struct DatabaseProvider<TX, N: NodeTypes> {

@joshieDo joshieDo added C-enhancement New feature or request A-db Related to the database A-sdk Related to reth's use as a library labels Oct 29, 2024
@joshieDo joshieDo requested a review from mattsse October 29, 2024 14:16
@joshieDo joshieDo changed the title feat(provider): use NodeTypes on DatabaseProvider feat(provider): use NodeTypes on DatabaseProvider instead Oct 29, 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.

lgtm, this way we get access to all primitives which is what we need

@joshieDo joshieDo added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit 1006ce7 Oct 29, 2024
40 checks passed
@joshieDo joshieDo deleted the joshie/dbn branch October 29, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database A-sdk Related to reth's use as a library C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants