-
Notifications
You must be signed in to change notification settings - Fork 906
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
msggen: Add decode and decodepay to the mapped bindings #6229
Merged
rustyrussell
merged 12 commits into
ElementsProject:master
from
cdecker:202318-grpc-decodepay
May 5, 2023
Merged
msggen: Add decode and decodepay to the mapped bindings #6229
rustyrussell
merged 12 commits into
ElementsProject:master
from
cdecker:202318-grpc-decodepay
May 5, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We use overrides that omit fields in some cases, which makes the conversion lossy. This also means that until we complete the mapping we can't reconvert back.
This is still a huge response, so we better make sure we can actually convert it correctly.
IN/OUT => LOCAL/REMOTE
We were using per-type overrides which caused some asymmetries, where conversions could end up dropping fields as we went along. Essentially each conversion would need to override a superset of the previous one, which then caused issues when attempting to close the loop. By overriding on the model level we ensure that all representations are equivalent and convertible into one another, at the expense of overriding a bit more aggressively, which should be fine anyway.
cdecker
force-pushed
the
202318-grpc-decodepay
branch
2 times, most recently
from
May 3, 2023 14:31
163f82f
to
7bb6dca
Compare
cdecker
force-pushed
the
202318-grpc-decodepay
branch
from
May 3, 2023 14:34
7bb6dca
to
3098a5b
Compare
rustyrussell
approved these changes
May 4, 2023
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 3098a5b
Changelog-Added: grpc: Added mapping for `listpeerchannels`, `listclosedchannels`, `decode` and `decodepay` RPC method
cdecker
force-pushed
the
202318-grpc-decodepay
branch
from
May 4, 2023 13:48
3098a5b
to
5dc3a0b
Compare
Added a Changelog-Added entry describing all 3 PRs in this stack. |
rustyrussell
approved these changes
May 5, 2023
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 5dc3a0b
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Builds on top of #6222 and starts at 51eecab
We had to do some drive-by fixes, and improvements to msggen itself:
But the meat of the PR is the addition of
decode
anddecodepay
, as such it should replace #6212Closes #6212