Use Bank for ticks_per_slot

This commit is contained in:
Greg Fitzgerald
2019-02-22 20:50:59 -07:00
parent 0b8809da6e
commit e19dbdc527
6 changed files with 15 additions and 11 deletions

View File

@@ -711,7 +711,7 @@ mod tests {
let bank = bank_forks.working_bank();
let entry_height = bank_forks_info[0].entry_height;
assert!(bank.tick_height() >= leader_scheduler.read().unwrap().ticks_per_epoch);
assert!(bank.tick_height() >= bank.ticks_per_slot() * bank.slots_per_epoch());
assert!(entry_height >= ledger_initial_len);