/// Return whether the given node is part of the given consensus committee
/// at the specified height
Return whether the given node is part of the given consensus committee
at the specified height
Return whether the given node is part of the given consensus committee at the specified height
pub fn node_belongs_to_threshold_committee(
        &self,
        node_id: NodeId,
        height: Height,
        committee: Committee,
    ) -> Result<bool, MembershipError> {
        match committee {
            Committee::HighThreshold => {
                self.node_belongs_to_high_threshold_committee(node_id, height)
            }
            Committee::LowThreshold => {
                self.node_belongs_to_low_threshold_committee(node_id, height)
            }
            Committee::Notarization => {
                unreachable!("Notarization/Finalization does not use threshold committee")
            }
        }
    }
pub fn node_belongs_to_threshold_committee ( & self , node_id : NodeId , height : Height , committee : Committee , ) -> Result < bool , MembershipError > { match committee { Committee :: HighThreshold => { self . node_belongs_to_high_threshold_committee ( node_id , height ) } Committee :: LowThreshold => { self . node_belongs_to_low_threshold_committee ( node_id , height ) } Committee :: Notarization => { unreachable ! ( " " ) } } }
Return whether the given node is part of the given consensus committee
at the specified height
Return whether the given node is part of the given consensus committee at the specified height
&self
node_id
NodeId
height
Height
committee
Committee