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:
Pawan Dhananjay
2021-08-31 23:31:36 +00:00
parent 44fa54004c
commit 5a3bcd2904
14 changed files with 564 additions and 71 deletions

View File

@@ -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)
}
}