Trait reth::transaction_pool::error::PoolTransactionError

source ·
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§

source

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§

source§

impl Error for Box<dyn PoolTransactionError>

source§

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

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§