Trait equivocation_detector::SourceClient
source · pub trait SourceClient<P: EquivocationDetectionPipeline>: SourceClientBase<P> {
type TransactionTracker: TransactionTracker;
// Required method
fn report_equivocation<'life0, 'async_trait>(
&'life0 self,
at: P::Hash,
equivocation: P::EquivocationProof,
) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Source client used in equivocation detection loop.
Required Associated Types§
sourcetype TransactionTracker: TransactionTracker
type TransactionTracker: TransactionTracker
Transaction tracker to track submitted transactions.
Required Methods§
sourcefn report_equivocation<'life0, 'async_trait>(
&'life0 self,
at: P::Hash,
equivocation: P::EquivocationProof,
) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn report_equivocation<'life0, 'async_trait>(
&'life0 self,
at: P::Hash,
equivocation: P::EquivocationProof,
) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Report equivocation.
Object Safety§
This trait is not object safe.