From 1a8440ae1f3f1c2c8373c9b9983496b9942ef2af Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 5 Feb 2024 14:17:59 +0100 Subject: [PATCH] chore: rm trait bounds (#6402) --- crates/transaction-pool/src/validate/eth.rs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/crates/transaction-pool/src/validate/eth.rs b/crates/transaction-pool/src/validate/eth.rs index f30b24c59b0a..9d35153cc1ad 100644 --- a/crates/transaction-pool/src/validate/eth.rs +++ b/crates/transaction-pool/src/validate/eth.rs @@ -31,10 +31,7 @@ use reth_revm::optimism::RethL1BlockInfo; /// Validator for Ethereum transactions. #[derive(Debug, Clone)] -pub struct EthTransactionValidator -where - Client: BlockReaderIdExt, -{ +pub struct EthTransactionValidator { /// The type that performs the actual validation. inner: Arc>, } @@ -98,10 +95,7 @@ where /// A [TransactionValidator] implementation that validates ethereum transaction. #[derive(Debug)] -pub(crate) struct EthTransactionValidatorInner -where - Client: BlockReaderIdExt, -{ +pub(crate) struct EthTransactionValidatorInner { /// Spec of the chain chain_spec: Arc, /// This type fetches account info from the db @@ -130,10 +124,7 @@ where // === impl EthTransactionValidatorInner === -impl EthTransactionValidatorInner -where - Client: BlockReaderIdExt, -{ +impl EthTransactionValidatorInner { /// Returns the configured chain id pub(crate) fn chain_id(&self) -> u64 { self.chain_spec.chain().id() @@ -605,7 +596,6 @@ impl EthTransactionValidatorBuilder { blob_store: S, ) -> EthTransactionValidator where - Client: BlockReaderIdExt, S: BlobStore, { let Self { @@ -656,7 +646,6 @@ impl EthTransactionValidatorBuilder { blob_store: S, ) -> TransactionValidationTaskExecutor> where - Client: BlockReaderIdExt, T: TaskSpawner, S: BlobStore, {