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
2023-09-18 11:51:54 +03:00
committed by Bastian Köcher
parent 655a5055cc
commit 4cd9e2fe79
10 changed files with 716 additions and 29 deletions
@@ -50,7 +50,7 @@ pub trait Engine<C: Chain>: Send {
/// Type of finality proofs, used by consensus engine.
type FinalityProof: FinalityProof<HashOf<C>, BlockNumberOf<C>> + Decode + Encode;
/// The context needed for verifying finality proofs.
type FinalityVerificationContext: Send;
type FinalityVerificationContext: Debug + Send;
/// The type of the equivocation proof used by the consensus engine.
type EquivocationProof: Clone + Debug + Send + Sync;
/// The equivocations finder.