Skip to content

Commit

Permalink
fix(sentry): Refetch beacon committees after reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 11, 2023
1 parent 0acc61e commit 7675c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sentry/ethereum/services/duties.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (m *DutiesService) fireOnBeaconCommitteeSubscriptions(epoch phase0.Epoch, c
}

func (m *DutiesService) fetchBeaconCommittee(ctx context.Context, epoch phase0.Epoch, skipCache ...bool) error {
if skipCache != nil && !skipCache[0] {
if len(skipCache) != 0 && !skipCache[0] {
if duties := m.beaconCommittees.Get(epoch); duties != nil {
return nil
}
Expand Down

0 comments on commit 7675c26

Please sign in to comment.