-
Notifications
You must be signed in to change notification settings - Fork 912
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
jsonrpc: Remove the old "_msat" prefix in the listpeerchannels command #6245
jsonrpc: Remove the old "_msat" prefix in the listpeerchannels command #6245
Conversation
This is a regression that we introduced in this release due to some dirty parts of our codebase. For historical reasons (I think), we were using a `json_add_sat_only` procedure defined in `peer_control.c`. So when @rustyrussell removed the _msat, we thought that all the fields were reflecting the new behavior, but we were wrong. This PR fixes this bug and also removes the additional function from `peer_control.c`. This way, we can be sure that there is no other part of our codebase that uses this method (except for other `json_add` methods). Link: ElementsProject#6244 Reported-by: @hMsats Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Does this upset the schema deprecation logic? It might be useful to rebase on #6242 to check. LGTM otherwise. |
I do not know if the #6242 will be go in for this release. For sure this is a bug fix and will go in, but the other one i do not know.
Mh what do you mean? the |
I am leaning towards not adding this one for May release.
I believe this one is a good candidate for May release to save developers from bumping into msat removal issues in future. |
Disregard my previous comment. Just wanted to make sure it would pass
Definitely. ACK 6f9d0ce |
@ShahanaFarooqui maybe also add to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack 6f9d0ce
Changelog-Removed: JSON-RPC: the "msat" suffix on millisatoshi fields, as deprecated in v0.12.0. |
This is a regression that we introduced in this release
due to some dirty parts of our codebase.
For historical reasons (I think), we were using a
json_add_sat_only
procedure defined in
peer_control.c
. So when @rustyrussell removed the _msat,we thought that all the fields were reflecting the new behavior, but
we were wrong.
This PR fixes this bug and also removes the additional function
from
peer_control.c
. This way, we can be sure that there is no other partof our codebase that uses this method (except for other
json_add
methods).Fixes: #6244
Reported-by: @hMsats
Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com