pub fn block_proposers(&self, slot: Slot) -> HashSet<PublicKeyBytes> {
        let epoch = slot.epoch(E::slots_per_epoch());

        self.proposers
            .read()
            .get(&epoch)
            .map(|(_, proposers)| {
                proposers
                    .iter()
                    .filter(|proposer_data| proposer_data.slot == slot)
                    .map(|proposer_data| proposer_data.pubkey)
                    .collect()
            })
            .unwrap_or_default()
    }
/// Returns the pubkeys of the validators which are assigned to propose in the given slot.
///
/// It is possible that multiple validators have an identical proposal slot, however that is
/// likely the result of heavy forking (lol) or inconsistent beacon node connections.
Returns the pubkeys of the validators which are assigned to propose in the given slot.
It is possible that multiple validators have an identical proposal slot, however that is
likely the result of heavy forking (lol) or inconsistent beacon node connections.
Returns the pubkeys of the validators which are assigned to propose in the given slot . It is possible that multiple validators have an identical proposal slot however that is likely the result of heavy forking ( lol ) or inconsistent beacon node connections .
pub fn block_proposers(&self, slot: Slot) -> HashSet<PublicKeyBytes> {
        let epoch = slot.epoch(E::slots_per_epoch());
        self.proposers
            .read()
            .get(&epoch)
            .map(|(_, proposers)| {
                proposers
                    .iter()
                    .filter(|proposer_data| proposer_data.slot == slot)
                    .map(|proposer_data| proposer_data.pubkey)
                    .collect()
            })
            .unwrap_or_default()
    }
pub fn block_proposers ( & self , slot : Slot ) -> HashSet < PublicKeyBytes > { let epoch = slot . epoch ( E :: slots_per_epoch ( ) ) ; self . proposers . read ( ) . get ( & epoch ) . map ( | ( _ , proposers ) | { proposers . iter ( ) . filter ( | proposer_data | proposer_data . slot == slot ) . map ( | proposer_data | proposer_data . pubkey ) . collect ( ) } ) . unwrap_or_default ( ) }
Returns the pubkeys of the validators which are assigned to propose in the given slot.
Returns the pubkeys of the validators which are assigned to propose in the given slot .
&self
slot
Slot