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

@ -89,9 +89,9 @@ fn main() {
create_time
);
let mut ancestors = Vec::with_capacity(num_slots);
ancestors.push((0, 0));
ancestors.push(0);
for i in 1..num_slots {
ancestors.push((i as u64, i - 1));
ancestors.push(i as u64);
accounts.add_root(i as u64);
}
let ancestors = Ancestors::from(ancestors);