Use tvu_peers() since validators no longer run an RPC port by default (#3784)
This commit is contained in:
parent
64c6f05da2
commit
d026ebb83a
|
@ -246,7 +246,7 @@ impl ClusterInfo {
|
||||||
pub fn contact_info_trace(&self) -> String {
|
pub fn contact_info_trace(&self) -> String {
|
||||||
let leader_id = self.gossip_leader_id;
|
let leader_id = self.gossip_leader_id;
|
||||||
let nodes: Vec<_> = self
|
let nodes: Vec<_> = self
|
||||||
.rpc_peers()
|
.tvu_peers()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|node| {
|
.map(|node| {
|
||||||
let mut annotation = String::new();
|
let mut annotation = String::new();
|
||||||
|
@ -262,7 +262,11 @@ impl ClusterInfo {
|
||||||
node.id,
|
node.id,
|
||||||
annotation,
|
annotation,
|
||||||
node.tpu.to_string(),
|
node.tpu.to_string(),
|
||||||
|
if ContactInfo::is_valid_address(&node.rpc) {
|
||||||
node.rpc.to_string()
|
node.rpc.to_string()
|
||||||
|
} else {
|
||||||
|
"none".to_string()
|
||||||
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Reference in New Issue