reth::transaction_pool::error

Trait PoolTransactionError

pub trait PoolTransactionError:
    Error
    + Send
    + Sync {
    // Required method
    fn is_bad_transaction(&self) -> bool;
}
Expand description

A trait for additional errors that can be thrown by the transaction pool.

For example during validation TransactionValidator::validate_transaction

Required Methods§

fn is_bad_transaction(&self) -> bool

Returns true if the error was caused by a transaction that is considered bad in the context of the transaction pool and warrants peer penalization.

See PoolError::is_bad_transaction.

Trait Implementations§

§

impl Error for Box<dyn PoolTransactionError>

§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more

Implementors§