Skip to main content

is_responsible

Function is_responsible 

Source
pub async fn is_responsible(
    self_id: &PeerId,
    key: &XorName,
    p2p_node: &Arc<P2PNode>,
    close_group_size: usize,
) -> bool
Expand description

Check if this node is responsible for key K.

Returns true if self_id is among the close_group_size nearest peers to K in SelfInclusiveRT.