-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
LCD Rest API returning unreadable bonded amount #1359
Comments
Seems to be fixed on develop:
(This was on a clean install), did you do anything else to get that strange output? If not, then this may have been fixed by the unbonding PR. |
I just tested on
And I can reproduce the same problem when connected to gaia-6002. A lot of validators are partially slashed, which is why you see the ugly fractions. If the numbers are whole integers, they look fine. See this related ticket: #1354 |
Oh I see. Didn't notice the slash there. |
Yeah this should probably be resolved by using human readable output for rationals |
(but not with the JSON output, I reckon we want all those digits in this situation) |
This issue will be addressed by switching to decimal in #1807 |
To reproduce:
gaiacli advanced rest-server
localhost:1317/stake/validators
or~$ curl http://localhost:1317/stake/validators | jq
The root cause seems to be from
MarshalJSON
ofPoolShares
. See https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/client/rest/query.go#L172The text was updated successfully, but these errors were encountered: