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§
fn refresh_recent_peers(&mut self)
fn get_leader_tpus( &self, max_count: u64, protocol: Protocol, ) -> Vec<&SocketAddr>
Sourcefn get_leader_tpus_with_slots(
&self,
max_count: u64,
protocol: Protocol,
) -> Vec<(&SocketAddr, Slot)>
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