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: add Block AT to BlockReader #12837

Merged
merged 18 commits into from
Nov 25, 2024
Merged

feat: add Block AT to BlockReader #12837

merged 18 commits into from
Nov 25, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 25, 2024

Based on #12836

This PR adds Block AT to BlockReader trait making it output dependent on provider primitive types.

There's a limitation of auto_impl crate due to which I've had to implement BlockReader for &T and Arc<T> manually

Besides that, most of the changes for now are adding block generics and locking them to reth_primitives::Block where needed.

With this PR, database providers are completely abstract over transaction and block body, and for higher-level providers we are blocked on tree types

@klkvr klkvr force-pushed the klkvr/block-reader-at branch from 8c247fa to bad1136 Compare November 25, 2024 13:16
Base automatically changed from klkvr/body-reader-traits to main November 25, 2024 13:45
@klkvr klkvr enabled auto-merge November 25, 2024 14:23
@klkvr klkvr added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit c44e11b Nov 25, 2024
41 checks passed
@klkvr klkvr deleted the klkvr/block-reader-at branch November 25, 2024 14:45
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