Align Tpu::new() and Tpu::switch_to_leader() arguments

This commit is contained in:
Michael Vines
2019-02-07 21:17:10 -08:00
parent dbaf8e66ab
commit 56734dca3b
2 changed files with 4 additions and 4 deletions

View File

@ -282,14 +282,14 @@ impl Fullnode {
.try_clone()
.expect("Failed to clone broadcast socket"),
cluster_info.clone(),
blob_index,
config.sigverify_disabled,
max_tpu_tick_height,
blob_index,
&last_entry_id,
id,
scheduled_leader == id,
&to_validator_sender,
&blob_sender,
scheduled_leader == id,
);
inc_new_counter_info!("fullnode-new", 1);

View File

@ -81,14 +81,14 @@ impl Tpu {
transactions_sockets: Vec<UdpSocket>,
broadcast_socket: UdpSocket,
cluster_info: Arc<RwLock<ClusterInfo>>,
blob_index: u64,
sigverify_disabled: bool,
max_tick_height: u64,
blob_index: u64,
last_entry_id: &Hash,
leader_id: Pubkey,
is_leader: bool,
to_validator_sender: &TpuRotationSender,
blob_sender: &BlobSender,
is_leader: bool,
) -> Self {
let mut tpu = Self {
tpu_mode: None,