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

[feature]: Multi-RFQ send #1358

Open
3 tasks
GeorgeTsagk opened this issue Feb 6, 2025 · 0 comments
Open
3 tasks

[feature]: Multi-RFQ send #1358

GeorgeTsagk opened this issue Feb 6, 2025 · 0 comments
Assignees

Comments

@GeorgeTsagk
Copy link
Member

Description

The daemon currently grabs the first available asset channel when trying to send a payment, and will acquire a single RFQ for that asset channel alone. If that fails for any reason, the operation fails, without trying any other candidate channels or quotes.

We want to change that, so that when sending a payment multiple asset channels are considered, and multiple RFQs are acquired. The payment lifecycle from the PoV of tapd should also support a dynamic selection of asset channels and RFQs, which is adaptive to failures.

A brief summary of what needs to be done:

  • Acquire quotes for all suitable asset channels, and consider all of them for sending the payment
  • Payment lifecycle should take into account the multiple asset channels and quotes, and be able to adapt the next attempt when previous one fails

Investigation:

  • Can we somehow re-use LND's sharding algorithm in order to not re-write something similar when fragmenting the asset amount over multiple channels/quotes?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 💇‍♂️Needs Shaping
Development

No branches or pull requests

1 participant