Tidy ancestor iterators

This commit is contained in:
Paul Hauner
2019-08-05 16:25:21 +10:00
parent 89cb01cc93
commit 5079c25bb2
11 changed files with 125 additions and 199 deletions

View File

@@ -52,7 +52,7 @@ impl<T: BeaconChainTypes> ForkChoice<T> {
// been justified for at least 1 epoch ... If no such descendant exists,
// set justified_head to finalized_head.
let (start_state, start_block_root, start_block_slot) = {
let state = chain.current_state();
let state = &chain.head().beacon_state;
let (block_root, block_slot) =
if state.current_epoch() + 1 > state.current_justified_checkpoint.epoch {