mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Validator monitor support for sync committees (#2476)
## Issue Addressed N/A ## Proposed Changes Add functionality in the validator monitor to provide sync committee related metrics for monitored validators. Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -84,4 +84,9 @@ impl<T: EthSpec> SyncCommittee<T> {
|
||||
}
|
||||
Ok(subnet_positions)
|
||||
}
|
||||
|
||||
/// Returns `true` if the pubkey exists in the `SyncCommittee`.
|
||||
pub fn contains(&self, pubkey: &PublicKeyBytes) -> bool {
|
||||
self.pubkeys.contains(pubkey)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user