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

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

Interface for a fork detector

Required methods

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

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]

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...