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

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

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

Required methods

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

Loading content...

Provided methods

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]

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

Contracts

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

Loading content...