Clean up argument names

This commit is contained in:
Michael Vines 2021-06-21 14:23:39 -07:00
parent 84b9de8c18
commit 3b1517237c
1 changed files with 5 additions and 5 deletions

View File

@ -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<Slot>,
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 {