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

@ -253,7 +253,7 @@ fn main() {
poh_recorder.lock().unwrap().set_bank(&bank);
assert!(poh_recorder.lock().unwrap().bank().is_some());
if bank.slot() > 32 {
bank_forks.set_root(root, &None);
bank_forks.set_root(root, &None, None);
root += 1;
}
debug!(