Skip to content

Commit

Permalink
Merge pull request #24 from samcm/feat/remove-justified
Browse files Browse the repository at this point in the history
feat(consensus): Remove justified beacon slot fetching
  • Loading branch information
samcm authored Jun 11, 2022
2 parents c33eb03 + b9b6091 commit 135a549
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/exporter/consensus/jobs/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ func (b *Beacon) Start(ctx context.Context) {
}

func (b *Beacon) tick(ctx context.Context) {
for _, id := range []string{"head", "finalized", "justified"} {
if id != "justified" {
if err := b.GetFinality(ctx, id); err != nil {
b.log.WithError(err).Error("Failed to get finality")
}
for _, id := range []string{"head", "finalized"} {
if err := b.GetFinality(ctx, id); err != nil {
b.log.WithError(err).Error("Failed to get finality")
}

if err := b.GetSignedBeaconBlock(ctx, id); err != nil {
Expand Down

0 comments on commit 135a549

Please sign in to comment.