fuel_core_p2p::service

Trait 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<()>;
    fn new_tx_subscription_broadcast(&self, peer_id: FuelPeerId) -> 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<()>

Source

fn new_tx_subscription_broadcast(&self, peer_id: FuelPeerId) -> Result<()>

Implementors§