fn should_endorse(&self, vhash: &C::Hash, state: &State<C>) -> bool {
        if !ENABLE_ENDORSEMENTS {
            return false;
        }
        let unit = state.unit(vhash);
        !state.is_faulty(unit.creator)
            && unit
                .panorama
                .enumerate()
                .any(|(vidx, _)| state.is_faulty(vidx) && unit.new_hash_obs(state, vidx))
    }
/// Returns whether we should endorse the `vhash`.
///
/// We should endorse unit from honest validator that cites _an_ equivocator
/// as honest and it cites some new message by that validator.
Returns whether we should endorse the `vhash`.
We should endorse unit from honest validator that cites _an_ equivocator
as honest and it cites some new message by that validator.
Returns whether we should endorse the ` vhash ` . We should endorse unit from honest validator that cites _an_ equivocator as honest and it cites some new message by that validator .
fn should_endorse(&self, vhash: &C::Hash, state: &State<C>) -> bool {
        if !ENABLE_ENDORSEMENTS {
            return false;
        }
        let unit = state.unit(vhash);
        !state.is_faulty(unit.creator)
            && unit
                .panorama
                .enumerate()
                .any(|(vidx, _)| state.is_faulty(vidx) && unit.new_hash_obs(state, vidx))
    }
fn should_endorse ( & self , vhash : & C :: Hash , state : & State < C > ) -> bool { if ! ENABLE_ENDORSEMENTS { return false ; } let unit = state . unit ( vhash ) ; ! state . is_faulty ( unit . creator ) && unit . panorama . enumerate ( ) . any ( | ( vidx , _ ) | state . is_faulty ( vidx ) && unit . new_hash_obs ( state , vidx ) ) }
Returns whether we should endorse the `vhash`.
Returns whether we should endorse the ` vhash ` .
&self
vhash
&C::Hash
state
&State<C>
&self
vhash
&C::Hash
state
&State<C>