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: abstract EthTransactionValidator over ChainSpec #14162

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 3, 2025

Instead of storing concrete ethereum ChainSpec, makes validator to access it as Client::ChainSpec thus allowing to not depend on any concrete type.

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.

nice, lgtm

Comment on lines +46 to +47
#[derive(Debug)]
pub struct MockEthProvider<T = TransactionSigned, ChainSpec = reth_chainspec::ChainSpec> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

perhaps we even make this one generic over NodeTypes, but we should make this a good first issue

.kzg_settings(self.kzg_settings()?)
.with_additional_tasks(1)
.build_with_tasks(
blockchain_db.clone(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah yeah this was kinda redundant

@mattsse mattsse added the A-sdk Related to reth's use as a library label Feb 3, 2025
@klkvr klkvr force-pushed the klkvr/abstract-pool-over-chainspec branch from dcd323f to 64aa8ac Compare February 3, 2025 17:19
@klkvr klkvr enabled auto-merge February 3, 2025 17:19
@klkvr klkvr added this pull request to the merge queue Feb 3, 2025
Merged via the queue into main with commit e310688 Feb 3, 2025
44 checks passed
@klkvr klkvr deleted the klkvr/abstract-pool-over-chainspec branch February 3, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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