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§