Skip to content

Commit

Permalink
Merge pull request #65 from ethpandaops/fix/empty-block
Browse files Browse the repository at this point in the history
fix(sentry): check for empty block
  • Loading branch information
Savid authored Feb 20, 2023
2 parents f53195b + 794d072 commit a0e24d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sentry/event/beacon/eth/v2/beacon_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func (e *BeaconBlock) Decorate(ctx context.Context) (*xatu.DecoratedEvent, error
}

func (e *BeaconBlock) shouldIgnore(ctx context.Context) (bool, error) {
if e.event == nil {
return true, nil
}

if err := e.beacon.Synced(ctx); err != nil {
return true, nil
}
Expand Down

0 comments on commit a0e24d9

Please sign in to comment.