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

Correct outbound_payment route-fetch calls to pass the hash + ID #2092

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

TheBlueMatt
Copy link
Collaborator

Route::get_route_with_id exists to provide users payment-specific data when fetching a route, however we were failing to call it when we have such info, opting for the simple get_route instead. This defeats the purpose of the additional-metadata method, which we swap to using here.

`Route::get_route_with_id` exists to provide users payment-specific
data when fetching a route, however we were failing to call it when
we have such info, opting for the simple `get_route` instead. This
defeats the purpose of the additional-metadata method, which we
swap to using here.
tnull
tnull previously approved these changes Mar 9, 2023
arik-so
arik-so previously approved these changes Mar 9, 2023
Copy link
Contributor

@arik-so arik-so left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fine, but considering the amount of data find_route_with_id is returning, perhaps its return value should be a struct and not a tuple?

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2023

Codecov Report

Patch coverage: 86.95% and no project coverage change.

Comparison is base (36834b3) 91.14% compared to head (10e6978) 91.14%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2092   +/-   ##
=======================================
  Coverage   91.14%   91.14%           
=======================================
  Files         101      101           
  Lines       48887    48888    +1     
  Branches    48887    48888    +1     
=======================================
+ Hits        44557    44559    +2     
+ Misses       4330     4329    -1     
Impacted Files Coverage Δ
lightning/src/ln/outbound_payment.rs 90.75% <86.95%> (+0.16%) ⬆️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TheBlueMatt
Copy link
Collaborator Author

Added another commit to further simplify the macro. The first commit here will be included in the 0.0.114.0 Java/Ts release, the second will not.

@TheBlueMatt TheBlueMatt merged commit 23c1b46 into lightningdevkit:main Mar 9, 2023
@tnull tnull mentioned this pull request Mar 10, 2023
1 task
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.

None yet

6 participants