mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 13:58:28 +00:00
Merge remote-tracking branch 'origin/unstable' into tree-states
This commit is contained in:
@@ -231,6 +231,11 @@ impl MonitoredValidator {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Ensure epoch summary is added to the summaries map
|
||||
fn touch_epoch_summary(&self, epoch: Epoch) {
|
||||
self.with_epoch_summary(epoch, |_| {});
|
||||
}
|
||||
}
|
||||
|
||||
/// Holds a collection of `MonitoredValidator` and is notified about a variety of events on the P2P
|
||||
@@ -306,6 +311,7 @@ impl<T: EthSpec> ValidatorMonitor<T> {
|
||||
// Update metrics for individual validators.
|
||||
for monitored_validator in self.validators.values() {
|
||||
if let Some(i) = monitored_validator.index {
|
||||
monitored_validator.touch_epoch_summary(current_epoch);
|
||||
let i = i as usize;
|
||||
let id = &monitored_validator.id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user