Validator Set
Properties
The current list of active validators.
Table storing the number of epochs during which a validator's stake has been below the low stake threshold.
Any extra fields that's not defined statically.
Mapping from a staking pool ID to the inactive validator that has that pool as its staking pool. When a validator is deactivated the validator is removed from active_validators it is added to this table so that stakers can continue to withdraw their stake from it.
List of new validator candidates added during the current epoch. They will be processed at the end of the epoch.
Removal requests from the validators. Each element is an index pointing to active_validators.
Returns the field-presence view for this ValidatorSet instance.
Mappings from staking pool's ID to the sui address of a validator.
Total amount of stake from all active validators at the beginning of the epoch. Written only once per epoch, in advance_epoch function.
Table storing preactive/candidate validators, mapping their addresses to their Validator structs. When an address calls request_add_validator_candidate, they get added to this table and become a preactive validator. When the candidate has met the min stake requirement, they can call request_add_validator to officially add them to the active validator set active_validators next epoch.