Trait fuel_core_p2p::service::Broadcast

source ·
pub trait Broadcast: Send {
    // Required methods
    fn report_peer(
        &self,
        peer_id: FuelPeerId,
        report: AppScore,
        reporting_service: &'static str,
    ) -> Result<()>;
    fn block_height_broadcast(
        &self,
        block_height_data: BlockHeightHeartbeatData,
    ) -> Result<()>;
    fn tx_broadcast(&self, transaction: TransactionGossipData) -> Result<()>;
}

Required Methods§

source

fn report_peer( &self, peer_id: FuelPeerId, report: AppScore, reporting_service: &'static str, ) -> Result<()>

source

fn block_height_broadcast( &self, block_height_data: BlockHeightHeartbeatData, ) -> Result<()>

source

fn tx_broadcast(&self, transaction: TransactionGossipData) -> Result<()>

Implementors§