-
Notifications
You must be signed in to change notification settings - Fork 145
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
Validate staking functionalities for sovereign -> consumer changeover #781
Comments
@mpoke here's an update after brainstorming and drafting up some code: Concerns / notables
Slash behavior
Jail Behavior - TLDR always No-op
Unjail BehaviorAlways a no-op as well. Unjailing from the new valset is done on provider. Unjailing from old valset is n/a after the changeover is complete. Unjailing from old valset after upgrade, before changeover is complete doesn't really do much since the new valset takes over in 2-3 blocks anyways The remaining methods from |
Regarding the Slash behavior, I'm not sure we need the In both sets scenario. An infraction happens at an Similarly for Jail Behavior. Regarding the no-op of Jail Behavior, it may be useful to jail validators in the old valset as that will still affect their involvement in governance. However, this has very low priority. This opens the question of whether representatives can be jailed. @jtremback? If they can, this means that the Unjail must be directed to the gov-staking module. |
On the topic of jailing a democracy power, I believe we could add an implementation to I will say it seems like an odd design to jail someone for some short amount of time from voting on gov proposals. Seems like it'd be fine and quite simple to just keep |
@mpoke a normal democracy consumer (not going through the changeover process) will treat |
@mpoke I believe this was a concern that was brought up during one of our conversations a couple weeks ago. To confirm the concern is already addressed by our code, I've added this test to the PR solving this issue |
Slashing, jailing, etc. must work correctly after the upgrade and before the provider valset starts validating blocks. Confirm that consumer initiated slashing is functional even before CCV is established. We also need the "old" staking keeper around for at least the consumer unbonding period.
The text was updated successfully, but these errors were encountered: