Use tvu_peers() since validators no longer run an RPC port by default (#3784)

This commit is contained in:
Michael Vines 2019-04-15 13:25:09 -07:00 committed by GitHub
parent 64c6f05da2
commit d026ebb83a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -246,7 +246,7 @@ impl ClusterInfo {
pub fn contact_info_trace(&self) -> String {
let leader_id = self.gossip_leader_id;
let nodes: Vec<_> = self
.rpc_peers()
.tvu_peers()
.into_iter()
.map(|node| {
let mut annotation = String::new();
@ -262,7 +262,11 @@ impl ClusterInfo {
node.id,
annotation,
node.tpu.to_string(),
node.rpc.to_string()
if ContactInfo::is_valid_address(&node.rpc) {
node.rpc.to_string()
} else {
"none".to_string()
}
)
})
.collect();