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 TableSet generic to the node builder pattern #13231

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alessandromazza98
Copy link
Contributor

@alessandromazza98 alessandromazza98 commented Dec 9, 2024

Following #13222

This PR adds the possibility for external users that uses reth as a dependency to create custom tables inside the reth libmdbx database.

You need to overwrite (or wrap) the EthStorage (or OpStorage) struct and create a new one that implements the TableSet trait. And use that as the Storage type inside the implementation of the NodeTypes trait.

@mattsse

@alessandromazza98
Copy link
Contributor Author

alessandromazza98 commented Dec 9, 2024

it is also probably needed to change all the references to Tables::ALL in the code, next

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.

1 participant