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

Undelegation from inactive nodes #7

Open
przemyslaw opened this issue Feb 5, 2024 · 0 comments
Open

Undelegation from inactive nodes #7

przemyslaw opened this issue Feb 5, 2024 · 0 comments

Comments

@przemyslaw
Copy link
Collaborator

przemyslaw commented Feb 5, 2024

Goal

Implement a mechanism which would automatically undelegate all delegators from validators who have been inactive for a set number of eras. This is meant to encourage good stewardship of node operators.

Requirements

  • the delay is a global chainspec setting
  • allow validators to set a more restrictive limit on themselves
    -- must be lower than global limit
    -- would be a sort of SLA declaration

Solution

  • currently we track inactive validators only in a binary way - active/inactive
  • we'd need to update the ValidatorBid to also store the EraId when the validator was marked as inactive
  • then we'd probably follow a similar pattern to what we did with forced undelegation and handle the cleanup at the end of an era, before the auction is run
  • we'd follow a normal unbonding process - prune Delegator bid, create an UnbondingPurse and process the unbonds after a delay as usual
  • no additional handling of validator bids; they remain inactive and can be reactivated at a later date
  • setting an optional, more restrictive delay could be done as an optional argument in the add_bid entrypoint of the auction contract

Questions

Should we add some validation to prevent delegating funds to inactive validators?

moubctez pushed a commit that referenced this issue Feb 7, 2024
…gh-2064-factory-pattern

fixing audit & schema to satisfy ci
moubctez pushed a commit that referenced this issue Mar 7, 2024
binary_port: Update changelogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant