-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Unbonding fractional shares causes crash #2654
Comments
Wow, this looks bad, this is a state machine bug. Thanks @faboweb. It's possible we've fixed this since that commit (15 days old) but we should check. |
@faboweb can you report back if this is reproducible on the latest v0.25.0? |
@alexanderbez I won't get to it before Monday. I put it on my todo list. Does it work on the CLI? |
Don't sweat it, I'll test it out. Maybe during the process I'll also figure out the issue ;-) |
Created a new account, bonded 3 steak to a validator, and unbonded 2.5 (via the CLI) successfully. I have not yet tried via the LCD. |
wondering if is this isolated to lcd as well |
Yeah. @fedekunze can you verify |
If I unbond 2.5 steak, my delegation correctly drops to 97.5 steak but my undelegation shows only 2 steak. Is that correct behavior? In sum the undelegation tx would reduce my total steaks by 0.5 steak. |
That's correct; the amount of tokens you receive is rounded down. |
So is this a documentation fix then? |
Ahhh I think we still need to verify it works via Gaia Lite. I tried via the CLI and it works, I just haven't had time to test Gaia Lite. Can you test @jackzampolin? |
Closing this but please reopen @faboweb if you can reproduce on the |
Summary of Bug
Commit: ce23ad4
Trying to undelegate fractional shares like this on a one node testnet:
POST /stake/delegators/cosmos1u275j7enpehhvenv5d79shegn495mjsj2e0vvx/delegations
body:
causes:
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: