Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Jul 5, 2024
1 parent b3cf8fa commit 5b8c3dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func (ds *Datastore) RefreshKnownValidators(log *logrus.Entry, beaconClient beac
time.Sleep(6 * time.Second)
}

ds.RefreshKnownValidatorsBySlot(log, beaconClient, slot)
ds.RefreshKnownValidatorsWithoutChecks(log, beaconClient, slot)
}

func (ds *Datastore) RefreshKnownValidatorsBySlot(log *logrus.Entry, beaconClient beaconclient.IMultiBeaconClient, slot uint64) {
func (ds *Datastore) RefreshKnownValidatorsWithoutChecks(log *logrus.Entry, beaconClient beaconclient.IMultiBeaconClient, slot uint64) {
log.Info("Querying validators from beacon node... (this may take a while)")
timeStartFetching := time.Now()
validators, err := beaconClient.GetStateValidators(beaconclient.StateIDHead) // head is fastest
Expand Down
4 changes: 2 additions & 2 deletions services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ func (api *RelayAPI) updateProposerDuties(headSlot uint64) {
return
}

api.UpdateProposerDutiesBySlot(headSlot)
api.UpdateProposerDutiesWithoutChecks(headSlot)
}

func (api *RelayAPI) UpdateProposerDutiesBySlot(headSlot uint64) {
func (api *RelayAPI) UpdateProposerDutiesWithoutChecks(headSlot uint64) {
// Load upcoming proposer duties from Redis
duties, err := api.redis.GetProposerDuties()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions services/housekeeper/housekeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ func (hk *Housekeeper) updateProposerDuties(headSlot uint64) {
return
}

hk.UpdateProposerDutiesBySlot(headSlot)
hk.UpdateProposerDutiesWithoutChecks(headSlot)
}

func (hk *Housekeeper) UpdateProposerDutiesBySlot(headSlot uint64) {
func (hk *Housekeeper) UpdateProposerDutiesWithoutChecks(headSlot uint64) {
epoch := headSlot / common.SlotsPerEpoch

log := hk.log.WithFields(logrus.Fields{
Expand Down

0 comments on commit 5b8c3dd

Please sign in to comment.