Skip to content

Commit

Permalink
Only advance to the correct epoch (#4532)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvanloon committed Jan 13, 2020
1 parent d4ae063 commit 62811e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/sync/validate_aggregate_proof.go
Expand Up @@ -81,7 +81,7 @@ func (r *Service) validateAggregateAndProof(ctx context.Context, pid peer.ID, ms

// Only advance state if different epoch as the committee can only change on an epoch transition.
if helpers.SlotToEpoch(attSlot) > helpers.SlotToEpoch(s.Slot) {
s, err = state.ProcessSlots(ctx, s, attSlot)
s, err = state.ProcessSlots(ctx, s, helpers.StartSlot(helpers.SlotToEpoch(attSlot)))
if err != nil {
traceutil.AnnotateError(span, err)
return false
Expand Down

0 comments on commit 62811e8

Please sign in to comment.