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§