mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
@@ -80,17 +80,10 @@ func (s *Service) updateCustodyInfoIfNeeded() error {
|
||||
return errors.Wrap(err, "p2p update custody info")
|
||||
}
|
||||
|
||||
// Update the p2p earliest available slot metric
|
||||
earliestAvailableSlotP2P.Set(float64(storedEarliestSlot))
|
||||
|
||||
dbEarliestSlot, _, err := s.cfg.beaconDB.UpdateCustodyInfo(s.ctx, storedEarliestSlot, storedGroupCount)
|
||||
if err != nil {
|
||||
if _, _, err := s.cfg.beaconDB.UpdateCustodyInfo(s.ctx, storedEarliestSlot, storedGroupCount); err != nil {
|
||||
return errors.Wrap(err, "beacon db update custody info")
|
||||
}
|
||||
|
||||
// Update the DB earliest available slot metric
|
||||
earliestAvailableSlotDB.Set(float64(dbEarliestSlot))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -236,17 +236,6 @@ var (
|
||||
Buckets: []float64{100, 250, 500, 750, 1000, 1500, 2000, 4000, 8000, 12000, 16000},
|
||||
},
|
||||
)
|
||||
|
||||
// Custody earliest available slot metrics
|
||||
earliestAvailableSlotP2P = promauto.NewGauge(prometheus.GaugeOpts{
|
||||
Name: "custody_earliest_available_slot_p2p",
|
||||
Help: "The earliest available slot tracked by the p2p service for custody purposes",
|
||||
})
|
||||
|
||||
earliestAvailableSlotDB = promauto.NewGauge(prometheus.GaugeOpts{
|
||||
Name: "custody_earliest_available_slot_db",
|
||||
Help: "The earliest available slot tracked by the database for custody purposes",
|
||||
})
|
||||
)
|
||||
|
||||
func (s *Service) updateMetrics() {
|
||||
|
||||
3
changelog/satushh-revert-eas-metric.md
Normal file
3
changelog/satushh-revert-eas-metric.md
Normal file
@@ -0,0 +1,3 @@
|
||||
### Removed
|
||||
|
||||
- Reverted the eas metric as it currently has a bug. Will be fixed later.
|
||||
Reference in New Issue
Block a user