-
Notifications
You must be signed in to change notification settings - Fork 339
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
Limit payment path length based on payment_metadata
, custom TLVs, etc.
#3026
Limit payment path length based on payment_metadata
, custom TLVs, etc.
#3026
Commits on May 14, 2024
-
OutboundOnionPayload: hold Vec fields as references.
Will be useful when we reuse this enum to calculate the maximum path length, to avoid cloning the vecs.
Configuration menu - View commit details
-
Copy full SHA for e4e6e09 - Browse repository at this point
Copy the full SHA e4e6e09View commit details -
Remove unnecessary RecipientOnionFields clone.
Doable now that we take Vecs by reference in OutboundOnionPayload.
Configuration menu - View commit details
-
Copy full SHA for 960dd65 - Browse repository at this point
Copy the full SHA 960dd65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 336c77c - Browse repository at this point
Copy the full SHA 336c77cView commit details -
Make MAX_PATH_LENGTH_ESTIMATE const pub and expand doc comment.
Will be used in the next commit when we make this configurable in PaymentParameters.
Configuration menu - View commit details
-
Copy full SHA for 2de600b - Browse repository at this point
Copy the full SHA 2de600bView commit details
Commits on May 16, 2024
-
Extract onion_utils::build_onion_payloads_callback helper.
Will be useful when we want to calculate the total size of the payloads without actually allocating for them.
Configuration menu - View commit details
-
Copy full SHA for bcdb67e - Browse repository at this point
Copy the full SHA bcdb67eView commit details
Commits on May 20, 2024
-
Add max path length knob to PaymentParameters.
Will be used so the outbound_payment module can calculate the maximum path length with knowledge of any custom TLVs or payment metadata present.
Configuration menu - View commit details
-
Copy full SHA for 7f7f375 - Browse repository at this point
Copy the full SHA 7f7f375View commit details -
Abide by max path length param in router.
Also adds some testing by augmenting existing tests.
Configuration menu - View commit details
-
Copy full SHA for baa727e - Browse repository at this point
Copy the full SHA baa727eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6de5e1 - Browse repository at this point
Copy the full SHA c6de5e1View commit details -
outbound_payment: set max path length in PaymentParameters.
So the router knows how long the maximum payment path can be.
Configuration menu - View commit details
-
Copy full SHA for f0b5c58 - Browse repository at this point
Copy the full SHA f0b5c58View commit details -
Configuration menu - View commit details
-
Copy full SHA for c07245f - Browse repository at this point
Copy the full SHA c07245fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cc673b - Browse repository at this point
Copy the full SHA 3cc673bView commit details