Skip to main content

Module transaction_deny_config_manager

Module transaction_deny_config_manager 

Source
Expand description

Runtime manager for the TransactionDenyConfig used at voting time.

Holds the operator’s local configuration plus the latest deny-rule proposals received from committee members over consensus (via ConsensusTransactionKind::UpdateTransactionDenyConfig). The effective config is recomputed by evaluate_deny_configs:

  • The operator’s local transaction_deny_config is always applied unconditionally.
  • Each operator-defined SharedDenyRuleset (“pre-listed” ruleset) activates only when validators holding at least its stake threshold of the eligible stake have each proposed a superset of its rules.
  • A “default” bucket threshold-gates each individual proposed rule element (deny-list entry or boolean kill switch) that peers have proposed.

Structs§

DefaultBucketStatus
DenyConfigEvaluation
Result of evaluating the deny-config voting state.
PrelistedRulesetStatus
TransactionDenyConfigManager
TransactionDenyConfigMetrics
Prometheus metrics for the deny config manager. Distinguishes the operator’s local rules from the post-merge effective rules, and exposes per-pre-listed-config voting status so dashboards can see “config X is one validator away from activating.”

Functions§

evaluate_deny_configs
Pure evaluation of the deny-config voting state.