fn validate_lnc(
        &self,
        creator: ValidatorIndex,
        panorama: &Panorama<C>,
        endorsed: &BTreeSet<C::Hash>,
    ) -> Option<ValidatorIndex> {
        if !ENABLE_ENDORSEMENTS {
            return None;
        }
        let violates_lnc =
            |eq_idx: &ValidatorIndex| !self.satisfies_lnc_for(creator, panorama, endorsed, *eq_idx);
        panorama.iter_faulty().find(violates_lnc)
    }
/// Validates whether a unit with the given panorama and `endorsed` set satisfies the
/// Limited Naivety Criterion (LNC).
/// Returns index of the first equivocator that was cited naively in violation of the LNC, or
/// `None` if the LNC is satisfied.
Validates whether a unit with the given panorama and `endorsed` set satisfies the
Limited Naivety Criterion (LNC).
Returns index of the first equivocator that was cited naively in violation of the LNC, or
`None` if the LNC is satisfied.
Validates whether a unit with the given panorama and ` endorsed ` set satisfies the Limited Naivety Criterion ( LNC ) . Returns index of the first equivocator that was cited naively in violation of the LNC or ` None ` if the LNC is satisfied .
fn validate_lnc(
        &self,
        creator: ValidatorIndex,
        panorama: &Panorama<C>,
        endorsed: &BTreeSet<C::Hash>,
    ) -> Option<ValidatorIndex> {
        if !ENABLE_ENDORSEMENTS {
            return None;
        }
        let violates_lnc =
            |eq_idx: &ValidatorIndex| !self.satisfies_lnc_for(creator, panorama, endorsed, *eq_idx);
        panorama.iter_faulty().find(violates_lnc)
    }
fn validate_lnc ( & self , creator : ValidatorIndex , panorama : & Panorama < C > , endorsed : & BTreeSet < C :: Hash > , ) -> Option < ValidatorIndex > { if ! ENABLE_ENDORSEMENTS { return None ; } let violates_lnc = | eq_idx : & ValidatorIndex | ! self . satisfies_lnc_for ( creator , panorama , endorsed , * eq_idx ) ; panorama . iter_faulty ( ) . find ( violates_lnc ) }
Validates whether a unit with the given panorama and `endorsed` set satisfies the
Limited Naivety Criterion (LNC).
Validates whether a unit with the given panorama and ` endorsed ` set satisfies the Limited Naivety Criterion ( LNC ) .
&self
creator
ValidatorIndex
panorama
&Panorama<C>
endorsed
&BTreeSet<C::Hash>
&self
creator
ValidatorIndex
panorama
&Panorama<C>
endorsed
&BTreeSet<C::Hash>