Skip to content

Commit

Permalink
Added fix in store_target_checkpoint_state
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Asgaonkar committed Jun 11, 2020
1 parent 5258266 commit b85afca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specs/phase0/fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def store_target_checkpoint_state(store: Store, target: Checkpoint) -> None:
# Store target checkpoint state if not yet seen
if target not in store.checkpoint_states:
base_state = store.block_states[target.root].copy()
process_slots(base_state, compute_start_slot_at_epoch(target.epoch))
if base_state.slot < compute_start_slot_at_epoch(target.epoch):
process_slots(base_state, compute_start_slot_at_epoch(target.epoch))
store.checkpoint_states[target] = base_state
```

Expand Down

0 comments on commit b85afca

Please sign in to comment.