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

Revoked validators should be put into the unbonding state #1676

Closed
rigelrozanski opened this issue Jul 13, 2018 · 8 comments
Closed

Revoked validators should be put into the unbonding state #1676

rigelrozanski opened this issue Jul 13, 2018 · 8 comments
Assignees
Labels
C:x/staking T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). T:Bug

Comments

@rigelrozanski
Copy link
Contributor

When a validator is revoked it should begin unbonding, and eventually enter into the fully unbonded state - Should verify that this is explained in the spec and implemented properly in the codebase

@rigelrozanski rigelrozanski self-assigned this Jul 13, 2018
@rigelrozanski rigelrozanski added the T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). label Jul 16, 2018
@rigelrozanski
Copy link
Contributor Author

We know this is not happening, so it needs to be programmed to meet this specification - also we should ensure this is documented in the spec

@rigelrozanski rigelrozanski changed the title Ensure that revoked validators are put into the unbonding state Revoked validators should be put into the unbonding state Jul 30, 2018
@rigelrozanski
Copy link
Contributor Author

Related #1877

ALSO
As a part of this issue we need to ensure that the delegations that are either redelegating or undelegating from a validator in an unbonding state have a reduced unbonding period.

We will need to introduce unbonding_height and unbonding_time into the validator object for the above

@rigelrozanski
Copy link
Contributor Author

related: #1879

because these are "undelegations" not always "unbonds"

@rigelrozanski
Copy link
Contributor Author

@cwgoes
Copy link
Contributor

cwgoes commented Aug 17, 2018

Also when a validator is unbonded due to being kicked out (which can happen without being revoked).

@cwgoes
Copy link
Contributor

cwgoes commented Aug 17, 2018

Note that this means creating "unbonding delegation" objects, which we don't do presently.

edit: We just need the unbonding validator objects.

@rigelrozanski
Copy link
Contributor Author

@cwgoes what do you mean? When a validator is unbonding - the delegator's unbonding tokens are lumped in with this new " unbonding valdiator" object - it's only if the delegators call "undelegate" (from a validator in any state) which an "unbonding delegation" can be created

@cwgoes
Copy link
Contributor

cwgoes commented Aug 22, 2018

@cwgoes what do you mean? When a validator is unbonding - the delegator's unbonding tokens are lumped in with this new " unbonding valdiator" object - it's only if the delegators call "undelegate" (from a validator in any state) which an "unbonding delegation" can be created

You're right, I stand corrected, that was just a note from simulation that the tokens were vanishing into nonexistence when a validator was forcibly unbonded. "Unbonding validator" objects make more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/staking T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). T:Bug
Projects
None yet
Development

No branches or pull requests

2 participants