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 8, 2023
1 parent a78a901 commit 70cf644
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
4 changes: 2 additions & 2 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 70cf644

Please sign in to comment.