Clean up argument names
This commit is contained in:
@ -222,17 +222,17 @@ impl ForkProgress {
|
|||||||
|
|
||||||
pub fn new_from_bank(
|
pub fn new_from_bank(
|
||||||
bank: &Bank,
|
bank: &Bank,
|
||||||
my_pubkey: &Pubkey,
|
validator_identity: &Pubkey,
|
||||||
voting_pubkey: &Pubkey,
|
validator_vote_pubkey: &Pubkey,
|
||||||
prev_leader_slot: Option<Slot>,
|
prev_leader_slot: Option<Slot>,
|
||||||
num_blocks_on_fork: u64,
|
num_blocks_on_fork: u64,
|
||||||
num_dropped_blocks_on_fork: u64,
|
num_dropped_blocks_on_fork: u64,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let validator_stake_info = {
|
let validator_stake_info = {
|
||||||
if bank.collector_id() == my_pubkey {
|
if bank.collector_id() == validator_identity {
|
||||||
Some(ValidatorStakeInfo::new(
|
Some(ValidatorStakeInfo::new(
|
||||||
*voting_pubkey,
|
*validator_vote_pubkey,
|
||||||
bank.epoch_vote_account_stake(voting_pubkey),
|
bank.epoch_vote_account_stake(validator_vote_pubkey),
|
||||||
bank.total_epoch_stake(),
|
bank.total_epoch_stake(),
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user