Add a cache for leader schedules (#3841)

* Add a cache for leader schedules
This commit is contained in:
carllin
2019-04-19 02:39:44 -07:00
committed by GitHub
parent 0f88872650
commit 512bfc93cb
16 changed files with 568 additions and 254 deletions

View File

@ -279,6 +279,10 @@ impl Bank {
}
}
pub fn epoch_schedule(&self) -> &EpochSchedule {
&self.epoch_schedule
}
/// squash the parent's state up into this Bank,
/// this Bank becomes a root
pub fn squash(&self) {