Skip to content

Reexport RouteHintHop #2589

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

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

ErikDeSmedt
Copy link

Earlier @benthecarman re-exported RouteHint to make life-easier for developpers who use lightning-invoice and don't use the lightning-crate.

This only solved part of the issue. To create a RouteHint the developer must also have access to RouteHintHop.

See also:
PR #2572
commit 79b426f

@benthecarman
Copy link
Contributor

Nice catch! Looking more thoroughly you might need to add RoutingFees too

@ErikDeSmedt ErikDeSmedt force-pushed the reexport_route_hint_hop branch from a7e2fe2 to b771f08 Compare September 19, 2023 19:17
@ErikDeSmedt
Copy link
Author

Thanks, I've included the import as well

@benthecarman
Copy link
Contributor

benthecarman commented Sep 20, 2023

Looks like CI is failing, RoutingFees is being imported twice, just need to delete the non-pub import

@ErikDeSmedt ErikDeSmedt force-pushed the reexport_route_hint_hop branch from b771f08 to 22e81e0 Compare September 20, 2023 06:06
@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.10% ⚠️

Comparison is base (a7e3575) 88.85% compared to head (d1d23ff) 88.76%.
Report is 10 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2589      +/-   ##
==========================================
- Coverage   88.85%   88.76%   -0.10%     
==========================================
  Files         113      113              
  Lines       84463    84534      +71     
  Branches    84463    84534      +71     
==========================================
- Hits        75053    75040      -13     
- Misses       7188     7259      +71     
- Partials     2222     2235      +13     
Files Changed Coverage Δ
lightning-invoice/src/lib.rs 85.23% <ø> (ø)

... and 15 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ErikDeSmedt ErikDeSmedt force-pushed the reexport_route_hint_hop branch from 22e81e0 to a9f0ae2 Compare September 20, 2023 06:07
@ErikDeSmedt ErikDeSmedt force-pushed the reexport_route_hint_hop branch from a9f0ae2 to eb59e1b Compare September 20, 2023 14:02
@ErikDeSmedt ErikDeSmedt force-pushed the reexport_route_hint_hop branch from eb59e1b to fde30c3 Compare September 20, 2023 20:05
Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM, mod one nit.

Earlier @benthecarman re-exported `RouteHint` to make life-easier
for developpers that use `lightning-invoice` and don't use the
`lightning`-crate.

This only solved part of the issue. To create a `RouteHint` the
developer must also have access to `RouteHintHop`.

See also:
  PR lightningdevkit#2572
	commit 79b426f
@ErikDeSmedt ErikDeSmedt force-pushed the reexport_route_hint_hop branch from fde30c3 to d1d23ff Compare September 21, 2023 13:41
@tnull tnull merged commit a37a16a into lightningdevkit:main Sep 22, 2023
@ErikDeSmedt ErikDeSmedt deleted the reexport_route_hint_hop branch September 22, 2023 07:50
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.

5 participants