reth_transaction_pool

Trait TransactionFilter

Source
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§

Source

type Transaction

The type of the transaction to check.

Required Methods§

Source

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

Returns true if the transaction satisfies the conditions.

Implementors§