Skip to main content

evaluate_deny_configs

Function evaluate_deny_configs 

Source
pub fn evaluate_deny_configs(
    local_rules: &TransactionDenyRules,
    sync_config: &PeerDenySyncConfig,
    votes: &BTreeMap<AuthorityName, &TransactionDenyRules>,
    stakes: &BTreeMap<AuthorityName, StakeUnit>,
) -> DenyConfigEvaluation
Expand description

Pure evaluation of the deny-config voting state.

Each pre-listed ruleset is evaluated independently — a proposal counts as a vote for every pre-listed ruleset whose rules it is a superset of (including nested/overlapping rulesets). Each default bucket considers proposed elements whose DenyElementKind it claims, threshold-gating them individually. Element kinds not claimed by any bucket cannot be activated through the default path.