Rename ClusterInfo::send_vote to ClusterInfo::send_transaction

This commit is contained in:
Michael Vines
2021-07-07 11:14:10 -07:00
parent f04340b125
commit 1e0942e900
2 changed files with 5 additions and 5 deletions

View File

@ -1121,13 +1121,13 @@ impl ClusterInfo {
}
}
pub fn send_vote(
pub fn send_transaction(
&self,
vote: &Transaction,
transaction: &Transaction,
tpu: Option<SocketAddr>,
) -> 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(())
}