-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Expire unbonding delegations etc. based on combined height/time unbonding period #6478
Comments
We may not actually use |
WRT to the context of why we use a hybrid of both time and height in the x/evidence module, this makes sense. Even if it's very unlikely to be exploited, there is no harm in taking this approach withing staking -- correct me if I'm wrong. WDYT @ebuchman? |
Right, we need the evidence to match the unbonding. Eg. if the timestamp was fast forwarded, and evidence is still valid according to the evidence module because the height limit has not passed, but the validator is already finished unbonding because it was only based on timestamp, then the allegedly valid evidence would be useless in punishing the validator. So the conditions for validators being fully unbonded needs to match the evidence validity conditions, which means they should require both the height and time to pass. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@marbar3778 this issue was marked |
Right now, if I understand correctly, the
x/staking
module expires entries based solely on time:This mis-matches the new unbonding period, which is a combination of height & time, see the evidence module:
Instead, we need to only remove unbonding validators, unbonding delegations, etc. once both height & time have passed.
The text was updated successfully, but these errors were encountered: