Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validators joining next epoch #4425

Open
begonaalvarezd opened this issue Dec 10, 2024 · 0 comments · May be fixed by #5269
Open

Add validators joining next epoch #4425

begonaalvarezd opened this issue Dec 10, 2024 · 0 comments · May be fixed by #5269
Assignees
Labels
explorer Issues related to the Explorer tooling Issues related to the Tooling team

Comments

@begonaalvarezd
Copy link
Member

In the validators page, add to the list pending validators which are the ones that will join next epoch.

Context of the system-state information:

        /// List of new validator candidates added during the current epoch.
        /// They will be processed at the end of the epoch.
        pending_active_validators: TableVec<ValidatorV1>,

        /// 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.
        inactive_validators: Table<ID, Validator>,

        /// Table storing preactive/candidate validators, mapping their addresses to their `ValidatorV1 ` 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.
        validator_candidates: Table<address, Validator>,

the pendingActiveValidatorId that is returned is what we want. We would get the information on the validators through iotax_getDynamicFields if the pendingActiveValidatorSize > 0. Fun fact the Id is the objecd-id of the Table wrapped inside the TableVec.
The rest inactive, candidates do not have more information than the one you get from iotax_getDynamicFields

@begonaalvarezd begonaalvarezd added explorer Issues related to the Explorer tooling Issues related to the Tooling team labels Dec 10, 2024
@evavirseda evavirseda self-assigned this Feb 6, 2025
@evavirseda evavirseda linked a pull request Feb 7, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explorer Issues related to the Explorer tooling Issues related to the Tooling team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants