-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, lgtm
#[derive(Debug)] | ||
pub struct MockEthProvider<T = TransactionSigned, ChainSpec = reth_chainspec::ChainSpec> { |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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
dcd323f
to
64aa8ac
Compare
Instead of storing concrete ethereum ChainSpec, makes validator to access it as
Client::ChainSpec
thus allowing to not depend on any concrete type.