Skip to content

Commit

Permalink
Use cluster info functions for tpu (#345) (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Sep 22, 2023
1 parent d117fb4 commit 3230a7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ strum_macros = { workspace = true }
sys-info = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "~1.14.1", features = ["full"] }
tip-distribution = { workspace = true }
tip-payment = { workspace = true }
tokio = { version = "~1.14.1", features = ["full"] }
tonic = { workspace = true }
trees = { workspace = true }

Expand Down
7 changes: 2 additions & 5 deletions core/src/proxy/fetch_stage_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@ impl FetchStageManager {
tpu_address: SocketAddr,
tpu_forward_address: SocketAddr,
) -> Result<(), contact_info::Error> {
let mut new_contact_info = cluster_info.my_contact_info();
// TODO (LB): double check protocol!!!!!!
new_contact_info.set_tpu(tpu_address)?;
new_contact_info.set_tpu_forwards(tpu_forward_address)?;
cluster_info.set_my_contact_info(new_contact_info);
cluster_info.set_tpu(tpu_address)?;
cluster_info.set_tpu_forwards(tpu_forward_address)?;
Ok(())
}

Expand Down
1 change: 0 additions & 1 deletion validator/src/admin_rpc_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,6 @@ mod tests {
},
std::{
collections::HashSet,
str::FromStr,
sync::{atomic::AtomicBool, Mutex},
},
};
Expand Down

0 comments on commit 3230a7d

Please sign in to comment.