Revert to more consistent naming (#3114)

This commit is contained in:
Sagar Dhawan
2019-03-04 17:50:19 -08:00
committed by GitHub
parent 6d82123125
commit dc42c12f2b
11 changed files with 19 additions and 31 deletions

View File

@ -254,7 +254,7 @@ impl Bank {
// Construct a vote account for the bootstrap_leader such that the leader_scheduler
// will be forced to select it as the leader for height 0
let mut bootstrap_leader_staking_account = Account {
let mut bootstrap_leader_vote_account = Account {
tokens: bootstrap_leader_stake,
userdata: vec![0; VoteState::max_size() as usize],
owner: solana_vote_api::id(),
@ -264,13 +264,13 @@ impl Bank {
let mut vote_state = VoteState::new(genesis_block.bootstrap_leader_id);
vote_state.votes.push_back(Lockout::new(&Vote::new(0)));
vote_state
.serialize(&mut bootstrap_leader_staking_account.userdata)
.serialize(&mut bootstrap_leader_vote_account.userdata)
.unwrap();
self.accounts().store_slow(
self.accounts_id,
&genesis_block.bootstrap_leader_vote_account_id,
&bootstrap_leader_staking_account,
&bootstrap_leader_vote_account,
);
self.blockhash_queue