File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -731,16 +731,15 @@ func Validator(w http.ResponseWriter, r *http.Request) {
731731 if len (actualSyncPeriods ) > 0 {
732732 // get sync stats from validator_stats
733733 syncStats := types.SyncCommitteesStats {}
734- // check if validator has been active in the last exported stats day
735- if lastStatsDay > 0 && validatorPageData .ActivationEpoch <= lastStatsDay * utils .EpochsPerDay () {
734+ if lastStatsDay > 0 {
736735 err = db .ReaderDb .Get (& syncStats , `
737736 SELECT
738737 COALESCE(participated_sync_total, 0) AS participated_sync,
739738 COALESCE(missed_sync_total, 0) AS missed_sync,
740739 COALESCE(orphaned_sync_total, 0) AS orphaned_sync
741740 FROM validator_stats
742741 WHERE validatorindex = $1 AND day = $2` , index , lastStatsDay )
743- if err != nil {
742+ if err != nil && err != sql . ErrNoRows {
744743 return fmt .Errorf ("error getting validator syncStats: %w" , err )
745744 }
746745 }
You can’t perform that action at this time.
0 commit comments