From 3b1517237c7122472be7ca4201177c2fb7239c41 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 21 Jun 2021 14:23:39 -0700 Subject: [PATCH] Clean up argument names --- core/src/progress_map.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/progress_map.rs b/core/src/progress_map.rs index 16a11bd37c..1683a04e6b 100644 --- a/core/src/progress_map.rs +++ b/core/src/progress_map.rs @@ -222,17 +222,17 @@ impl ForkProgress { pub fn new_from_bank( bank: &Bank, - my_pubkey: &Pubkey, - voting_pubkey: &Pubkey, + validator_identity: &Pubkey, + validator_vote_pubkey: &Pubkey, prev_leader_slot: Option, num_blocks_on_fork: u64, num_dropped_blocks_on_fork: u64, ) -> Self { let validator_stake_info = { - if bank.collector_id() == my_pubkey { + if bank.collector_id() == validator_identity { Some(ValidatorStakeInfo::new( - *voting_pubkey, - bank.epoch_vote_account_stake(voting_pubkey), + *validator_vote_pubkey, + bank.epoch_vote_account_stake(validator_vote_pubkey), bank.total_epoch_stake(), )) } else {