Skip to content

Commit

Permalink
Merge pull request #2570 from gobitfly/BIDS-2472/follow_up
Browse files Browse the repository at this point in the history
(BIDS-2472) remove log message, fix sync duties stats export for pre-…
  • Loading branch information
peterbitfly authored Sep 21, 2023
2 parents fd39711 + 85acfb1 commit 3c5db47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion db/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,6 @@ func (bigtable *Bigtable) GetValidatorSyncDutiesHistory(validators []uint64, sta
}
slot = MAX_CL_BLOCK_NUMBER - slot

logger.Info(slot)
for _, ri := range r[SYNC_COMMITTEES_FAMILY] {

inclusionSlot := MAX_CL_BLOCK_NUMBER - uint64(ri.Timestamp)/1000
Expand Down
6 changes: 6 additions & 0 deletions db/statistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,12 @@ func WriteValidatorSyncDutiesForDay(validators []uint64, day uint64, tx *sqlx.Tx
}

startEpoch, endEpoch := utils.GetFirstAndLastEpochForDay(day)
if startEpoch < utils.Config.Chain.Config.AltairForkEpoch && endEpoch > utils.Config.Chain.Config.AltairForkEpoch {
startEpoch = utils.Config.Chain.Config.AltairForkEpoch
} else if endEpoch < utils.Config.Chain.Config.AltairForkEpoch {
logger.Infof("day %v is pre-altair, skipping sync committee export")

Check failure on line 991 in db/statistics.go

View workflow job for this annotation

GitHub Actions / Run CI (ubuntu-latest, 1.20.x)

(*github.com/sirupsen/logrus.Entry).Infof format %v reads arg #1, but call has 0 args
return nil
}

start := time.Now()
logrus.Infof("Update Sync duties for day [%v] epoch %v -> %v", day, startEpoch, endEpoch)
Expand Down

0 comments on commit 3c5db47

Please sign in to comment.