Cache banks in BankForks until optional largest_confirmed_root (#9678)

automerge
This commit is contained in:
Tyera Eulberg
2020-04-24 16:49:57 -06:00
committed by GitHub
parent d7f37a703e
commit a7f33b5014
6 changed files with 106 additions and 22 deletions

View File

@@ -1528,7 +1528,7 @@ pub mod tests {
Bank::new_from_parent(&parent_bank, parent_bank.collector_id(), *root);
parent_bank = bank_forks.write().unwrap().insert(new_bank);
parent_bank.squash();
bank_forks.write().unwrap().set_root(*root, &None);
bank_forks.write().unwrap().set_root(*root, &None, None);
let parent = if i > 0 { roots[i - 1] } else { 1 };
fill_blockstore_slot_with_ticks(&blockstore, 5, *root, parent, Hash::default());
}