Skip to content

Commit

Permalink
Merge pull request #67 from ethpandaops/fix/meta
Browse files Browse the repository at this point in the history
fix(sentry): beacon block meta
  • Loading branch information
Savid authored Feb 20, 2023
2 parents b146c63 + 9812a5b commit f6a6abf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/sentry/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ func (s *Sentry) Start(ctx context.Context) error {
if err != nil {
s.log.WithError(err).Error("Failed to fetch block")
} else {
event := v2.NewBeaconBlock(s.log, beaconBlock, now, s.beacon, s.duplicateCache.BeaconETHV2BeaconBlock, meta)
beaconBlockMeta, err := s.createNewClientMeta(ctx)
if err != nil {
return err
}

event := v2.NewBeaconBlock(s.log, beaconBlock, now, s.beacon, s.duplicateCache.BeaconETHV2BeaconBlock, beaconBlockMeta)

decoratedEvent, err := event.Decorate(ctx)
if err != nil {
Expand Down

0 comments on commit f6a6abf

Please sign in to comment.