[][src]Trait tendermint_light_client::evidence::EvidenceReporter

pub trait EvidenceReporter: Send + Sync {
    pub fn __contracts_impl_report(
        &self,
        e: Evidence,
        peer: PeerId
    ) -> Result<Hash, IoError>; pub fn report(&self, e: Evidence, peer: PeerId) -> Result<Hash, IoError> { ... } }

Interface for reporting evidence to full nodes, typically via the RPC client.

Required methods

pub fn __contracts_impl_report(
    &self,
    e: Evidence,
    peer: PeerId
) -> Result<Hash, IoError>
[src]

Loading content...

Provided methods

pub fn report(&self, e: Evidence, peer: PeerId) -> Result<Hash, IoError>[src]

Report evidence to all connected full nodes.

Loading content...

Implementors

impl EvidenceReporter for ProdEvidenceReporter[src]

pub fn __contracts_impl_report(
    &self,
    e: Evidence,
    peer: PeerId
) -> Result<Hash, IoError>
[src]

Contracts

Pre-condition: self . peer_map . contains_key(& peer)

Loading content...