-
Notifications
You must be signed in to change notification settings - Fork 367
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
Introduce RouteParametersConfig #3342
Open
shaavan
wants to merge
7
commits into
lightningdevkit:main
Choose a base branch
from
shaavan:i3262
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Oct 22, 2024
-
Introduce RouteParametersConfig
With the current architecture, `pay_for_offer` only allows setting `max_total_routing_fee_msat` as a route parameter. However, it doesn't provide users the flexibility to set other important parameters. This commit introduces a new struct, `RouteParametersConfig`, that optionally allows users to set additional routing parameters. In later commits, this struct will be utilized when paying BOLT12 invoices.
Configuration menu - View commit details
-
Copy full SHA for 69c3499 - Browse repository at this point
Copy the full SHA 69c3499View commit details -
Update
AwaitingInvoice
to includeRouteParametersConfig
When `pay_for_offer` is called, it creates a new `PendingOutboundPayment` entry with relevant values that will be used when the corresponding invoice is received. This update modifies `AwaitingInvoice` to include the entire `RouteParametersConfig` struct instead of just `max_total_routing_fee_msat`. This change ensures all manual routing parameters are available when finding payment routes. Decisions & Reasoning: 1. **Retention of `max_total_routing_fee_msat` in `AwaitingInvoice` & `InvoiceReceived`** This field is retained to ensure downgrade support. 2. **Introduction of `route_params_config` in `InvoiceReceived`:** This was added for the same reason that `max_total_routing_fee_msat` was originally introduced in PR lightningdevkit#2417. The documentation has been updated to reflect this, based on [this comment](lightningdevkit@d7e2ff6#r1334619765).
Configuration menu - View commit details
-
Copy full SHA for 583d686 - Browse repository at this point
Copy the full SHA 583d686View commit details -
Configuration menu - View commit details
-
Copy full SHA for db71b52 - Browse repository at this point
Copy the full SHA db71b52View commit details -
Extend pay_for_offer to accept RouteParametersOverride
This update allows users to call `pay_for_offer` with a set of parameters they wish to manually set for routing the corresponding invoice. By accepting `RouteParametersOverride`, users gain greater control over the routing process.
Configuration menu - View commit details
-
Copy full SHA for 6ccb7b6 - Browse repository at this point
Copy the full SHA 6ccb7b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e60588 - Browse repository at this point
Copy the full SHA 2e60588View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5cd262 - Browse repository at this point
Copy the full SHA a5cd262View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4221929 - Browse repository at this point
Copy the full SHA 4221929View commit details
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.