pub(crate) fn needs_endorsements(&self, unit: &SignedWireUnit<C>) -> Option<C::Hash> {
        unit.wire_unit()
            .endorsed
            .iter()
            .find(|hash| !self.endorsements.contains_key(hash))
            .cloned()
    }
/// Returns hash of unit that needs to be endorsed.
Returns hash of unit that needs to be endorsed.
Returns hash of unit that needs to be endorsed .
pub(crate) fn needs_endorsements(&self, unit: &SignedWireUnit<C>) -> Option<C::Hash> {
        unit.wire_unit()
            .endorsed
            .iter()
            .find(|hash| !self.endorsements.contains_key(hash))
            .cloned()
    }
pub ( crate ) fn needs_endorsements ( & self , unit : & SignedWireUnit < C > ) -> Option < C :: Hash > { unit . wire_unit ( ) . endorsed . iter ( ) . find ( | hash | ! self . endorsements . contains_key ( hash ) ) . cloned ( ) }
Returns hash of unit that needs to be endorsed.
Returns hash of unit that needs to be endorsed .
&self
unit
&SignedWireUnit<C>
&self
unit
&SignedWireUnit<C>