Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Feb 20, 2024
1 parent e05677e commit c900bf1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/beacon/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,23 +346,22 @@ func (d *Default) fetchBundle(ctx context.Context, root phase0.Root, upstream *N
return nil, fmt.Errorf("failed to download and store deposit snapshot: %w", err)
}

spec, err := upstream.Beacon.Spec()
sp, err := upstream.Beacon.Spec()
if err != nil {
return nil, fmt.Errorf("failed to fetch spec from upstream node: %w", err)
}

denebFork, err := spec.ForkEpochs.GetByName("DENEB")
denebFork, err := sp.ForkEpochs.GetByName("DENEB")
if err != nil {
return nil, fmt.Errorf("failed to fetch deneb fork: %w", err)
}

if denebFork.Active(slot, spec.SlotsPerEpoch) {
if denebFork.Active(slot, sp.SlotsPerEpoch) {
// Download and store blob sidecars
if err := d.downloadAndStoreBlobSidecars(ctx, slot, upstream); err != nil {
return nil, fmt.Errorf("failed to download and store blob sidecars: %w", err)
}
}

}

d.log.Infof("Successfully fetched bundle from %s", upstream.Config.Name)
Expand Down

0 comments on commit c900bf1

Please sign in to comment.