[−][src]Trait tendermint_light_client::fork_detector::ForkDetector
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]
&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.
Implementors
impl ForkDetector for ProdForkDetector
[src]
pub fn detect_forks(
&self,
verified_block: &LightBlock,
trusted_block: &LightBlock,
witnesses: Vec<&Instance>
) -> Result<ForkDetection, Error>
[src]
&self,
verified_block: &LightBlock,
trusted_block: &LightBlock,
witnesses: Vec<&Instance>
) -> Result<ForkDetection, Error>
Perform fork detection. See the documentation ProdForkDetector
for details.