fix(transaction-pool): mark TransactionEvent::Invalid as final (#19782)

This commit is contained in:
Fibonacci747
2025-11-17 00:43:52 +01:00
committed by GitHub
parent d66069deb0
commit 55875ec8a4

View File

@@ -83,7 +83,7 @@ impl TransactionEvent {
/// Returns `true` if the event is final and no more events are expected for this transaction
/// hash.
pub const fn is_final(&self) -> bool {
matches!(self, Self::Replaced(_) | Self::Mined(_) | Self::Discarded)
matches!(self, Self::Replaced(_) | Self::Mined(_) | Self::Discarded | Self::Invalid)
}
}