-
Notifications
You must be signed in to change notification settings - Fork 913
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
Add createonion
and sendonion
RPC commands
#3260
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f6c0d7a
json: Add two param parsers for secrets and hex-encoded binary data
cdecker e3de45c
sphinx: Promote TLV payloads to be non-experimental
cdecker 8a6c5a7
json-rpc: Add `createonion` command similar to the `devtools/onion` tool
cdecker 211d1f1
pytest: Add a test for `createonion`
cdecker 2b84662
pay: Split the onion construction from sendpay
cdecker 2e6e0bc
pay: Make wallet_payment->destination optional
cdecker a0117cd
pay: Add param_route_hop helper to parse `struct route_hop` from JSON
cdecker e82e9da
json-rpc: Add the `sendonion` RPC command
cdecker 1266ae0
pytest: Add a test for the `sendonion` method
cdecker fa3bc38
pay: Handle payment failures resulting from sendonion correctly
cdecker 951b9fa
json: Add helper to extract a secret from JSON
cdecker 006e7bc
pay: Make `erring_node` optional in `struct routing_failure`
cdecker d5dd834
pay: Make `erring_channel` optional in `struct routing_failure`
cdecker 85f86f7
pay: Allow `sendonion` callers to provide `shared_secrets`
cdecker 92b60bc
cleanup: The failchannel is not tal-allocated when first assigned
cdecker c04d415
json-rpc: Add the error onion if we stored it in the DB
cdecker a95abb9
pay: Allow payments initiated with `sendonion` to be retried
cdecker 28451ca
doc: Add manpages for `createonion` and `sendonion`
cdecker 26255e7
sphinx: Make the sphinx_hop struct public
cdecker 1286a00
param: Encapsulate hops parsing in a param_hops_array helper
cdecker 0109fd7
json-rpc: Rename onion payload type to style
cdecker 65342b1
json-rpc: Add helper for an array of secrets
cdecker f256bd8
json-rpc: Only show the amount_msat field if we know it in payments
cdecker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
Changelog should actually announce TLV! (Changelog-Added: We handle modern TLV-style payloads). This is important because we never announce EXPERIMENTAL features.
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.
I was hoping you'd add a changelog entry to #3167, since you did all the heavy lifting there, but you're right, that we don't note experimental features in the changelog.
I'd propose the following ling:
That's a less broad claim than full TLV support for sending and receiving without a plugin, which as you noted is still experimental.