Add unit tests for the equivocation detection loop (#2571)

* Add unit tests for the equivocation detection loop

* clippy

* use std::future::pending()
This commit is contained in:
Serban Iorga authored and Bastian Köcher committed 2024-04-10 10:28:37 +02:00
1 parent 655a5055cc
commit 4cd9e2fe79
10 files changed
+716 -29

No files matched your search

+2 -2
View File
@@ -142,8 +142,8 @@ pub trait TransactionTracker: Send {
}
/// Future associated with `TransactionTracker`, monitoring the transaction status.
pub type TrackedTransactionFuture<T> =
BoxFuture<'static, TrackedTransactionStatus<<T as TransactionTracker>::HeaderId>>;
pub type TrackedTransactionFuture<'a, T> =
BoxFuture<'a, TrackedTransactionStatus<<T as TransactionTracker>::HeaderId>>;
/// Stringified error that may be either connection-related or not.
#[derive(Error, Debug)]