chore: rm trait bounds (#6402)

This commit is contained in:
Matthias Seitz
2024-02-05 14:17:59 +01:00
committed by GitHub
parent 09e5e7c76e
commit 1a8440ae1f

View File

@@ -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>>,
}
@@ -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
@@ -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()
@@ -605,7 +596,6 @@ impl EthTransactionValidatorBuilder {
blob_store: S,
) -> EthTransactionValidator<Client, Tx>
where
Client: BlockReaderIdExt,
S: BlobStore,
{
let Self {
@@ -656,7 +646,6 @@ impl EthTransactionValidatorBuilder {
blob_store: S,
) -> TransactionValidationTaskExecutor<EthTransactionValidator<Client, Tx>>
where
Client: BlockReaderIdExt,
T: TaskSpawner,
S: BlobStore,
{