solana_send_transaction_service::tpu_info

Trait TpuInfo

Source
pub trait TpuInfo {
    // Required methods
    fn refresh_recent_peers(&mut self);
    fn get_leader_tpus(
        &self,
        max_count: u64,
        protocol: Protocol,
    ) -> Vec<&SocketAddr>;
    fn get_leader_tpus_with_slots(
        &self,
        max_count: u64,
        protocol: Protocol,
    ) -> Vec<(&SocketAddr, Slot)>;
}

Required Methods§

Source

fn refresh_recent_peers(&mut self)

Source

fn get_leader_tpus( &self, max_count: u64, protocol: Protocol, ) -> Vec<&SocketAddr>

Source

fn get_leader_tpus_with_slots( &self, max_count: u64, protocol: Protocol, ) -> Vec<(&SocketAddr, Slot)>

In addition to the the tpu address, also return the leader slot

Implementors§