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
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.
Trait Implementations§
§impl Error for Box<dyn PoolTransactionError>
impl Error for Box<dyn PoolTransactionError>
§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()