Skip to main content

get_node_weight

Function get_node_weight 

Source
pub fn get_node_weight(
    node_id: &SCPNodeID,
    qset: &SCPQuorumSet,
    is_local_node: bool,
) -> u64
Expand description

Returns the weight of the node within the qset normalized between 0-u64::MAX. If node_id is the local node, then set is_local_node to true.

If a validator is repeated multiple times its weight is only the weight of the first occurrence.