Skip to content

Commit

Permalink
chore: rm trait bounds (paradigmxyz#6402)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Feb 5, 2024
1 parent 09e5e7c commit 1a8440a
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions crates/transaction-pool/src/validate/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ use reth_revm::optimism::RethL1BlockInfo;

/// Validator for Ethereum transactions.
#[derive(Debug, Clone)]
pub struct EthTransactionValidator<Client, T>
where
Client: BlockReaderIdExt,
{
pub struct EthTransactionValidator<Client, T> {
/// The type that performs the actual validation.
inner: Arc<EthTransactionValidatorInner<Client, T>>,
}
Expand Down Expand Up @@ -98,10 +95,7 @@ where

/// A [TransactionValidator] implementation that validates ethereum transaction.
#[derive(Debug)]
pub(crate) struct EthTransactionValidatorInner<Client, T>
where
Client: BlockReaderIdExt,
{
pub(crate) struct EthTransactionValidatorInner<Client, T> {
/// Spec of the chain
chain_spec: Arc<ChainSpec>,
/// This type fetches account info from the db
Expand Down Expand Up @@ -130,10 +124,7 @@ where

// === impl EthTransactionValidatorInner ===

impl<Client, Tx> EthTransactionValidatorInner<Client, Tx>
where
Client: BlockReaderIdExt,
{
impl<Client, Tx> EthTransactionValidatorInner<Client, Tx> {
/// Returns the configured chain id
pub(crate) fn chain_id(&self) -> u64 {
self.chain_spec.chain().id()
Expand Down Expand Up @@ -605,7 +596,6 @@ impl EthTransactionValidatorBuilder {
blob_store: S,
) -> EthTransactionValidator<Client, Tx>
where
Client: BlockReaderIdExt,
S: BlobStore,
{
let Self {
Expand Down Expand Up @@ -656,7 +646,6 @@ impl EthTransactionValidatorBuilder {
blob_store: S,
) -> TransactionValidationTaskExecutor<EthTransactionValidator<Client, Tx>>
where
Client: BlockReaderIdExt,
T: TaskSpawner,
S: BlobStore,
{
Expand Down

0 comments on commit 1a8440a

Please sign in to comment.