bank::new_with_leader_scheduler_config() - remove Option<>

This commit is contained in:
Michael Vines
2019-02-06 19:35:00 -08:00
parent f789038baa
commit d9e2b94d7a
5 changed files with 23 additions and 27 deletions

View File

@ -1018,7 +1018,8 @@ fn test_leader_to_validator_transition() {
leader_exit();
info!("Check the ledger to make sure it's the right height...");
let bank = Fullnode::new_bank_from_ledger(&leader_ledger_path, None).0;
let bank =
Fullnode::new_bank_from_ledger(&leader_ledger_path, &LeaderSchedulerConfig::default()).0;
assert_eq!(
bank.tick_height(),