-
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
EXPERIMENTAL: MPP send and receive support (lowlevel) #3309
Merged
cdecker
merged 22 commits into
ElementsProject:master
from
rustyrussell:part-payment-send
Dec 12, 2019
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
178892b
db: add partid, total_msat fields to payment entries.
rustyrussell ad4ed97
db: add partid field to htlc_out.
rustyrussell 2a03434
htlcs: remove origin_htlc_id from htlc_out.
rustyrussell c654478
lightningd: share more code between sendpay and sendonion.
rustyrussell 04a46f0
lightningd: change amount-in-flight check to be more nuanced.
rustyrussell c61227b
sendpay/sendonion: add optional partid arg, finesse msatoshi argument.
rustyrussell 15fa972
configure: make partid payments only available with EXPERIMENTAL_FEAT…
rustyrussell 3bc4636
waitsendpay: add partid arg.
rustyrussell 94d3897
pytest: Add tests to make sure received onion is as expected.
rustyrussell 2e4416e
doc: update experimental bolt version quotes.
rustyrussell d94ae31
lightningd: cleanup redundant args from handle_localpay
rustyrussell 3c6e33a
lightningd: split invoice check into separate function.
rustyrussell 555b217
lightningd: implement htlc sets.
rustyrussell 73bf9e0
lightningd: wrap htlc replay in a database transaction.
rustyrussell 1839483
lightningd: sew in htlc set.
rustyrussell 8cee375
plugins: listpays ignores pre-0.7.0 or manual sendpay payments w/ no …
rustyrussell 84a2753
plugins: listpays will now consolidate multi-part payments.
rustyrussell c6bbb41
common: offer option_basic_mpp for EXPERIMENTAL_FEATURES.
rustyrussell cbfc84f
pytest: add more multi-part-payment tests.
rustyrussell 2b4ca09
lightningd: require payment_secret for MPP.
rustyrussell 207ae69
lightningd: fix spurious "more than twice final" error.
rustyrussell e6edb76
lightningd: fix failure message in waitsendpay with multi-part payments.
rustyrussell 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
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.
Should we maybe go the extra mile and call this
payment_parts
instead? We could then pull the common fields into a separatepayments
table. Would be a nice cleanups and fix that naming nit about pays being the combination of multiple payments.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'm not sure that should be done at the db level; it may be premature optimization?
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.
Yes, you're right, that'd be a bigger refactor that we should probably be done during a bit of downtime. It'd just be nice to have an actual
payment
concept that collects all theattempt
s that are performed trying to complete it. It may be my OOP/ORM past that is catching up with me 😉