reth::transaction_pool

Trait TransactionFilter

pub trait TransactionFilter {
    type Transaction;

    // Required method
    fn is_valid(&self, transaction: &Self::Transaction) -> bool;
}
Expand description

A filter that allows to check if a transaction satisfies a set of conditions

Required Associated Types§

type Transaction

The type of the transaction to check.

Required Methods§

fn is_valid(&self, transaction: &Self::Transaction) -> bool

Returns true if the transaction satisfies the conditions.

Implementors§