Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshmuelov committed Dec 3, 2024
1 parent 38d3290 commit 160c6c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator/duties/attester.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (h *AttesterHandler) shouldExecute(duty *eth2apiv1.AttesterDuty) bool {
)
return false
}

// execute task if slot already began and not pass 1 epoch
var attestationPropagationSlotRange = phase0.Slot(h.network.Beacon.SlotsPerEpoch())
if currentSlot >= duty.Slot && currentSlot-duty.Slot <= attestationPropagationSlotRange {
Expand Down
2 changes: 1 addition & 1 deletion operator/duties/sync_committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (h *SyncCommitteeHandler) shouldExecute(duty *eth2apiv1.SyncCommitteeDuty,
)
return false
}

// execute task if slot already began and not pass 1 slot
if currentSlot == slot {
return true
Expand Down

0 comments on commit 160c6c5

Please sign in to comment.