mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Tidy ancestor iterators
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user