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§
Sourcetype Transaction
type Transaction
The type of the transaction to check.
Required Methods§
Sourcefn is_valid(&self, transaction: &Self::Transaction) -> bool
fn is_valid(&self, transaction: &Self::Transaction) -> bool
Returns true if the transaction satisfies the conditions.