-
Notifications
You must be signed in to change notification settings - Fork 993
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
PoS - unbonding should update validator stake and voting power at pipeline offset #366
Comments
I'm thinking that we could design this to make it a bit clearer - In effect I don't think it makes much difference, because we still cannot slash for infraction committed at epoch Additionally, we've planned to go with |
we decided to go with making unbonded tokens withdrawal possible in |
@tzemanovic are you still working on this or is @brentstone? |
I'm taking care of this, it is included in #740. |
Instead of applying all the unbonding storage updates at
unbonding_len
, the "bond", validator total deltas and voting power and validator sets should be updated earlier atpipeline_len
and only the "unbond" record should be offset atunbonding_len
.This is to minimize a chance of a validator using their voting power before unbonding to perform some slashable infraction.
E.g. say a validator unbonds their stake at epoch
n
and then commits some slashable infraction somewhere between(n + pipeline_len .. n + unbonding_len]
. They would be using their voting power before unbonding, but they couldn't be slashed for it if it's discovered at or aftern + unbonding
. Using thepipeline_len
minimizes the duration during which the validator can use their voting power before unbonding to only epochn + 1
(beforen + pipeline_len
)The text was updated successfully, but these errors were encountered: