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 helper methods from DatabaseProvider to DBProvider as defaults #12367

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Nov 7, 2024

No reason for them to be just in DatabaseProvider and this makes them accessible to the future storage api trait

@joshieDo joshieDo added A-db Related to the database A-sdk Related to reth's use as a library labels Nov 7, 2024
@joshieDo joshieDo requested a review from klkvr November 7, 2024 09:07
@@ -1746,7 +1646,7 @@ impl<TX: DbTx, N: NodeTypes<ChainSpec: EthereumHardforks>> TransactionsProviderE
}

// Calculates the hash of the given transaction
impl<TX: DbTx, N: NodeTypes<ChainSpec: EthereumHardforks>> TransactionsProvider
impl<TX: DbTx + 'static, N: NodeTypes<ChainSpec: EthereumHardforks>> TransactionsProvider
Copy link
Collaborator

Choose a reason for hiding this comment

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

we could also move the 'static to the DbTx trait I assume?

@mattsse mattsse added this pull request to the merge queue Nov 7, 2024
Merged via the queue into main with commit cf72b6f Nov 7, 2024
40 checks passed
@mattsse mattsse deleted the joshie/dbpm branch November 7, 2024 12:22
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants