Remove cache operations from epoch processing.

- Don't build the next cache at all.
- Call `advance_caches()` in per-slot processing.
This commit is contained in:
Paul Hauner
2019-02-28 16:37:12 +11:00
parent ed032dddea
commit 073be906da
2 changed files with 1 additions and 6 deletions

View File

@@ -619,12 +619,6 @@ impl EpochProcessable for BeaconState {
.cloned()
.collect();
/*
* Manage the beacon state caches
*/
self.advance_caches();
self.build_epoch_cache(RelativeEpoch::Next, spec)?;
debug!("Epoch transition complete.");
Ok(())