[][src]Trait tendermint_light_client::fork_detector::ForkDetector

pub trait ForkDetector: Send + Sync {
    pub fn detect_forks(
        &self,
        verified_block: &LightBlock,
        trusted_block: &LightBlock,
        witnesses: Vec<&Instance>
    ) -> Result<ForkDetection, Error>; }

Interface for a fork detector

Required methods

pub fn detect_forks(
    &self,
    verified_block: &LightBlock,
    trusted_block: &LightBlock,
    witnesses: Vec<&Instance>
) -> Result<ForkDetection, Error>
[src]

Detect forks using the given verified block, trusted block, and list of witnesses to verify the given light block against.

Loading content...

Implementors

impl ForkDetector for ProdForkDetector[src]

pub fn detect_forks(
    &self,
    verified_block: &LightBlock,
    trusted_block: &LightBlock,
    witnesses: Vec<&Instance>
) -> Result<ForkDetection, Error>
[src]

Perform fork detection. See the documentation ProdForkDetector for details.

Loading content...