sgns::ValidatorRegistry::WeightConfig¶
Weight policy used to score validators and update penalties.
#include <ValidatorRegistry.hpp>
Public Attributes¶
| Name | |
|---|---|
| uint64_t | genesis_weight_ Base weight for genesis authority validators. |
| uint64_t | full_weight_ Base weight for full validators. |
| uint64_t | regular_weight_ Base weight for regular validators. |
| uint64_t | sharded_weight_ Base weight for sharded validators. |
| uint64_t | genesis_max_weight_ Max weight allowed for genesis validators. |
| uint64_t | full_max_weight_ Max weight allowed for full validators. |
| uint64_t | regular_max_weight_ Max weight allowed for regular validators. |
| uint64_t | sharded_max_weight_ Max weight allowed for sharded validators. |
| uint64_t | approval_increment_ Weight increment applied for approved behavior. |
| uint32_t | penalty_threshold_ Penalty score threshold before harsher actions. |
| uint32_t | penalty_cap_ Maximum accumulated penalty score. |
| uint32_t | blacklist_bump_ Penalty increment applied for severe failures. |
| uint32_t | missed_epoch_threshold_ Missed-epoch threshold used for inactivity decisions. |
| uint32_t | inactivity_decrement_ Weight decrement for inactive validators. |
| uint64_t | total_weight_cap_multiplier_ Multiplier controlling global weight-cap normalization. |
| uint64_t | certificate_timestamp_window_ms_ Allowed timestamp drift for certificates. |
Public Attributes Documentation¶
variable genesis_weight_¶
Base weight for genesis authority validators.
variable full_weight_¶
Base weight for full validators.
variable regular_weight_¶
Base weight for regular validators.
variable sharded_weight_¶
Base weight for sharded validators.
variable genesis_max_weight_¶
Max weight allowed for genesis validators.
variable full_max_weight_¶
Max weight allowed for full validators.
variable regular_max_weight_¶
Max weight allowed for regular validators.
variable sharded_max_weight_¶
Max weight allowed for sharded validators.
variable approval_increment_¶
Weight increment applied for approved behavior.
variable penalty_threshold_¶
Penalty score threshold before harsher actions.
variable penalty_cap_¶
Maximum accumulated penalty score.
variable blacklist_bump_¶
Penalty increment applied for severe failures.
variable missed_epoch_threshold_¶
Missed-epoch threshold used for inactivity decisions.
variable inactivity_decrement_¶
Weight decrement for inactive validators.
variable total_weight_cap_multiplier_¶
Multiplier controlling global weight-cap normalization.
variable certificate_timestamp_window_ms_¶
Allowed timestamp drift for certificates.
Updated on 2026-06-05 at 17:22:18 -0700