-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
lnrpc+routerrpc+lncli: add msat fields #3706
Conversation
734cf41
to
79d46bb
Compare
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.
Nice to see more consistency in the API!
If we introduce a braking change in the API anyway, wouldn't this be the moment to also just get rid of the sat amounts and only deal with msat? Or at least deprecate them and remove in the next release?
Get rid of it is also a breaking change on the wire level. So that needs to be preceded with deprecation first. Outstanding question on that above |
23be804
to
c980d8a
Compare
Left existing field unchanged, to prevent cascading changes in projects that depend on it. |
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.
LGTM 🎉
Lightning supports payments at the msat granularity, but
lnd
does not expose this on the rpc interface. This PR adds msat fields for payment amounts and fee limits.Fixes #3689
NOTE: This renames some of the existing rpc fields which is a breaking change for users building against our proto files. The change doesn't change anything on the wire level.