-
Notifications
You must be signed in to change notification settings - Fork 419
Properly consider blinded paths in InFlightHtlcs #4072
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
base: main
Are you sure you want to change the base?
Properly consider blinded paths in InFlightHtlcs #4072
Conversation
In the next commit we'll track blinded path in-flights in `InFlightHtlcs` as well as unblinded hops, so here we convert `InFlightHtlcs` to a named-field struct so that we can add more fields to it with less confusion.
Its not clear why this needs to be serialized at all (it should generally always be generated live when needed), but its serialization isn't forward-compatible, so really needs to be dropped so that we can add additional field(s) to `InFlightHtlcs`.
I've assigned @tankyleo as a reviewer! |
When paying a BOLT 12 invoice an amount greater than any one of multiple blinded paths, we need to track how much is in-flight across the paths when retrying. Here we do so, tracking blinded path usage in a new field in `InFlightHtlcs`. Fixes lightningdevkit#2737
3f57558
to
4cbd556
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4072 +/- ##
==========================================
+ Coverage 88.33% 88.36% +0.02%
==========================================
Files 177 177
Lines 131896 132011 +115
Branches 131896 132011 +115
==========================================
+ Hits 116512 116645 +133
+ Misses 12728 12704 -24
- Partials 2656 2662 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔔 1st Reminder Hey @tankyleo! This PR has been waiting for your review. |
🔔 2nd Reminder Hey @tankyleo! This PR has been waiting for your review. |
🔔 3rd Reminder Hey @tankyleo! This PR has been waiting for your review. |
When paying a BOLT 12 invoice an amount greater than any one of
multiple blinded paths, we need to track how much is in-flight
across the paths when retrying. Here we do so, tracking blinded
path usage in a new field in
InFlightHtlcs
.Fixes #2737