Merge remote-tracking branch 'origin/unstable' into tree-states

This commit is contained in:
Michael Sproul
2022-09-14 13:51:23 +10:00
404 changed files with 28947 additions and 12000 deletions

View File

@@ -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;