Skip to content

Commit

Permalink
fix(sentry): Panic fix in wallclock (#150)
Browse files Browse the repository at this point in the history
* refactor(duties): Simplify RequiredEpochDuties method

* Fix bad merge
  • Loading branch information
samcm authored Jul 20, 2023
1 parent 27a7907 commit 32e4c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sentry/ethereum/services/duties.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (m *DutiesService) Start(ctx context.Context) error {
}
}()

m.beacon.Wallclock().OnEpochChanged(func(epoch ethwallclock.Epoch) {
m.metadata.Wallclock().OnEpochChanged(func(epoch ethwallclock.Epoch) {
if err := m.backFillEpochDuties(ctx); err != nil {
m.log.WithError(err).Warn("Failed to fetch epoch duties")
}
Expand Down Expand Up @@ -105,7 +105,7 @@ func (m *DutiesService) Name() Name {
}

func (m *DutiesService) RequiredEpochDuties(ctx context.Context) []phase0.Epoch {
now := m.beacon.Wallclock().Epochs().Current()
now := m.metadata.Wallclock().Epochs().Current()

epochNumber := now.Number()

Expand Down

0 comments on commit 32e4c26

Please sign in to comment.