Skip to content

Commit

Permalink
do not hardcode slots per epoch in notifications.go
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Nov 15, 2022
1 parent 617597d commit 5dd7bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ func collectOfflineValidatorNotifications(notificationsByUserID map[uint64]map[t
for _, v := range dataArr {
t := hex.EncodeToString(v.Pubkey)
subs := subMap[t]
lastSeenEpoch := uint64(v.LastAttestationSlot.Int64 / 32)
lastSeenEpoch := uint64(v.LastAttestationSlot.Int64 / int64(utils.Config.Chain.Config.SlotsPerEpoch))
if latestExportedEpoch < lastSeenEpoch {
continue
}
Expand Down

0 comments on commit 5dd7bac

Please sign in to comment.