Added fix in store_target_checkpoint_state

This commit is contained in:
Aditya Asgaonkar 2020-06-11 07:28:26 -07:00
parent 52582662f1
commit b85afcab7a
1 changed files with 2 additions and 1 deletions

View File

@ -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
```