Add authorized_voter history (#7643)

* Add authorized_voter history

* fixups

* coverage

* bigger vote state
This commit is contained in:
Rob Walker
2019-12-30 19:57:53 -08:00
committed by GitHub
parent 760a56964f
commit 6b7d9942a7
4 changed files with 149 additions and 33 deletions

View File

@ -455,7 +455,7 @@ mod test {
let mut stakes = vec![];
for (lamports, votes) in stake_votes {
let mut account = Account::default();
account.data = vec![0; 1024];
account.data = vec![0; VoteState::size_of()];
account.lamports = *lamports;
let mut vote_state = VoteState::default();
for slot in *votes {