We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33431f4 + a8d52c6 commit 1e6a709Copy full SHA for 1e6a709
handlers/validator.go
@@ -731,7 +731,8 @@ func Validator(w http.ResponseWriter, r *http.Request) {
731
if len(actualSyncPeriods) > 0 {
732
// get sync stats from validator_stats
733
syncStats := types.SyncCommitteesStats{}
734
- if lastStatsDay > 0 {
+ // check if validator has been active in the last exported stats day
735
+ if lastStatsDay > 0 && validatorPageData.ActivationEpoch <= lastStatsDay*utils.EpochsPerDay() {
736
err = db.ReaderDb.Get(&syncStats, `
737
SELECT
738
COALESCE(participated_sync_total, 0) AS participated_sync,
0 commit comments