move vote_accounts up (#3647)

This commit is contained in:
Rob Walker
2019-04-05 14:23:00 -07:00
committed by GitHub
parent 3fcca5bc0a
commit a5b5248a09
5 changed files with 133 additions and 207 deletions

View File

@ -345,7 +345,7 @@ impl Locktower {
fn bank_weight(&self, bank: &Bank, ancestors: &HashMap<u64, HashSet<u64>>) -> u128 {
let stake_lockouts =
self.collect_vote_lockouts(bank.slot(), bank.vote_accounts(), ancestors);
self.collect_vote_lockouts(bank.slot(), bank.vote_accounts().into_iter(), ancestors);
self.calculate_weight(&stake_lockouts)
}