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

pcli: fix edge-case in undelegate-claim #5084

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Feb 11, 2025

Describe your changes

This fixes an edge-case in pcli tx undelegate-claim that would compute an invalid penalty range for dated delegation tokens.

Instead of using the current epoch as the end of the penalty range, we compute a more precise bound using the block delay chain parameter. This fixes processing old delegation tokens bound to a validator that transitioned in and out of penalty states.

Later, we could expose an RPC method to simplify client-side logic.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    pcli

@erwanor
Copy link
Member Author

erwanor commented Feb 12, 2025

User confirmed this fixed their issue

@erwanor erwanor merged commit 6f36f59 into main Feb 12, 2025
10 checks passed
@erwanor erwanor deleted the erwan/edge_case_unbonding branch February 12, 2025 23:13
@conorsch conorsch mentioned this pull request Feb 14, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants