From 1e0942e900a4ed4b27876321db29058006bef32c Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 7 Jul 2021 11:14:10 -0700 Subject: [PATCH] Rename ClusterInfo::send_vote to ClusterInfo::send_transaction --- core/src/replay_stage.rs | 4 ++-- gossip/src/cluster_info.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index dae7ec912d..3bf9b0bd0b 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -1562,7 +1562,7 @@ impl ReplayStage { ("target_bank_slot", heaviest_bank_on_same_fork.slot(), i64), ("target_bank_hash", hash_string, String), ); - let _ = cluster_info.send_vote( + let _ = cluster_info.send_transaction( &vote_tx, crate::banking_stage::next_leader_tpu(cluster_info, poh_recorder), ); @@ -1601,7 +1601,7 @@ impl ReplayStage { if let Some(vote_tx) = vote_tx { tower.refresh_last_vote_tx_blockhash(vote_tx.message.recent_blockhash); let mut send_time = Measure::start("send_vote"); - let _ = cluster_info.send_vote( + let _ = cluster_info.send_transaction( &vote_tx, crate::banking_stage::next_leader_tpu(cluster_info, poh_recorder), ); diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index 4a064453a2..4f9a6eaa8e 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -1121,13 +1121,13 @@ impl ClusterInfo { } } - pub fn send_vote( + pub fn send_transaction( &self, - vote: &Transaction, + transaction: &Transaction, tpu: Option, ) -> Result<(), GossipError> { let tpu = tpu.unwrap_or_else(|| self.my_contact_info().tpu); - let buf = serialize(vote)?; + let buf = serialize(transaction)?; self.socket.send_to(&buf, &tpu)?; Ok(()) }