Skip to content
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

Sendonion: add total amount #8015

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lagrang3
Copy link
Collaborator

@Lagrang3 Lagrang3 commented Jan 20, 2025

Trying to use sendonion in renepay instead of sendpay I noticed that these two rpc's are not compatible
with each other in multi-part payments, ie. if I send a partial payment with sendpay and try to complete
the payment by sending another part with sendonion I get an error because in the internal wallet
sendpay sets the total_amount as specified by the user while sendonion does not making this amount to 0.
Lightningd will only accept further payment parts if the total amounts match. With sendonion there
isn't a field to pass the total amount so we cannot proceed.

With this PR I have added a parameter to sendonion called total_amount_msat in order to make the
sendpay and sendonion interfaces compatible.

@Lagrang3 Lagrang3 requested a review from cdecker as a code owner January 20, 2025 12:00
@Lagrang3 Lagrang3 force-pushed the sendonion-total-amount branch from a2dd7ac to 7be5a67 Compare January 20, 2025 12:17
Changelog-Added: sendonion: a new paramter total_amount_msat to make MPP payments with sendpay and sendonion compatible.

Signed-off-by: Lagrang3 <[email protected]>
This commit can be squashed with the previous commit after PR review.

Changelog-None

Signed-off-by: Lagrang3 <[email protected]>
@Lagrang3 Lagrang3 force-pushed the sendonion-total-amount branch from 7be5a67 to 7593735 Compare January 20, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant