Skip to main content

compute_verification_targets

Function compute_verification_targets 

Source
pub async fn compute_verification_targets(
    keys: &[XorName],
    p2p_node: &Arc<P2PNode>,
    config: &ReplicationConfig,
    self_id: &PeerId,
) -> VerificationTargets
Expand description

Compute verification targets for a batch of keys.

For each key, determines the QuorumTargets (closest CLOSE_GROUP_SIZE peers excluding self) and PaidTargets (PaidCloseGroup excluding self), then unions them into per-peer request batches.