diff --git a/crates/transaction-pool/src/validate/mod.rs b/crates/transaction-pool/src/validate/mod.rs index 0ba716e0bffe..73fa8f7f9518 100644 --- a/crates/transaction-pool/src/validate/mod.rs +++ b/crates/transaction-pool/src/validate/mod.rs @@ -30,7 +30,7 @@ use reth_primitives_traits::Block; /// A Result type returned after checking a transaction's validity. #[derive(Debug)] -pub enum TransactionValidationOutcome { +pub enum TransactionValidationOutcome { /// The transaction is considered _currently_ valid and can be inserted into the pool. Valid { /// Balance of the sender at the current point. @@ -49,12 +49,12 @@ pub enum TransactionValidationOutcome { }, /// The transaction is considered invalid indefinitely: It violates constraints that prevent /// this transaction from ever becoming valid. - Invalid(T, InvalidPoolTransactionError), + Invalid(T, E), /// An error occurred while trying to validate the transaction Error(TxHash, Box), } -impl TransactionValidationOutcome { +impl TransactionValidationOutcome { /// Returns the hash of the transactions pub fn tx_hash(&self) -> TxHash { match self {