Ancestors to HashSet: From(Vec) (#17447)

* ancestors.large_range_slots becomes HashSet

* Ancestors to HashSet: From(Vec)
This commit is contained in:
Jeff Washington (jwash)
2021-05-25 11:01:11 -05:00
committed by GitHub
parent d39a327138
commit 98f1b11edd
5 changed files with 20 additions and 15 deletions

View File

@ -76,7 +76,7 @@ fn test_bad_bank_hash() {
let db = AccountsDb::new(Vec::new(), &ClusterType::Development);
let some_slot: Slot = 0;
let ancestors = Ancestors::from([(some_slot, 0usize)].iter().copied().collect::<Vec<_>>());
let ancestors = Ancestors::from(vec![some_slot]);
let max_accounts = 200;
let mut accounts_keys: Vec<_> = (0..max_accounts)