Skip to content

Commit

Permalink
Merge pull request #431 from ethpandaops/fix/contrib-proof-epoch
Browse files Browse the repository at this point in the history
fix(events): ensure correct epoch derived for contribution + proof event
  • Loading branch information
mattevans authored Jan 9, 2025
2 parents 1b0074f + f1245e3 commit 95101a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (e *EventsContributionAndProof) ShouldIgnore(ctx context.Context) (bool, er

func (e *EventsContributionAndProof) getAdditionalData(_ context.Context) (*xatu.ClientMeta_AdditionalEthV1EventsContributionAndProofV2Data, error) {
slot := e.beacon.Metadata().Wallclock().Slots().FromNumber(uint64(e.event.Message.Contribution.Slot))
epoch := e.beacon.Metadata().Wallclock().Epochs().FromNumber(uint64(e.event.Message.Contribution.Slot))
epoch := e.beacon.Metadata().Wallclock().Epochs().FromSlot(uint64(e.event.Message.Contribution.Slot))

extra := &xatu.ClientMeta_AdditionalEthV1EventsContributionAndProofV2Data{
Contribution: &xatu.ClientMeta_AdditionalEthV1EventsContributionAndProofContributionV2Data{
Expand Down

0 comments on commit 95101a0

Please sign in to comment.