Add forwarder sockets and address to contact info and sockets structs

This commit is contained in:
Carl
2019-03-08 14:59:11 -08:00
committed by Pankaj Garg
parent fe1f67ea9a
commit 7beefb3f81
5 changed files with 56 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ impl Tpu {
poh_recorder: &Arc<Mutex<PohRecorder>>,
entry_receiver: Receiver<WorkingBankEntries>,
transactions_sockets: Vec<UdpSocket>,
forwarder_sockets: Vec<UdpSocket>,
broadcast_socket: UdpSocket,
sigverify_disabled: bool,
blocktree: &Arc<Blocktree>,
@@ -40,8 +41,12 @@ impl Tpu {
cluster_info.write().unwrap().set_leader(id);
let (packet_sender, packet_receiver) = channel();
let fetch_stage =
FetchStage::new_with_sender(transactions_sockets, &exit, &packet_sender.clone());
let fetch_stage = FetchStage::new_with_sender(
transactions_sockets,
forwarder_sockets,
&exit,
&packet_sender.clone(),
);
let cluster_info_vote_listener =
ClusterInfoVoteListener::new(&exit, cluster_info.clone(), packet_sender);