Skip to content

Conversation

TheBlueMatt
Copy link
Collaborator

While its cool to have a super trivial API to initiate payment to a HumanReadableName, most wallets ultimately support multiple payment instruction formats (eg on-chain) or multiple HRN resolution schemes (eg LN-Address). Thus, we generally don't expect this API to get a lot of use.

Meanwhile, we've now ended up with both a
ChannelManager::pay_for_offer_from_hrn and
ChannelManager::pay_for_ofer_from_human_readable_name, which is incredibly confusing.

Here, we deprecate pay_for_offer_from_human_readable_name, pushing folks to the bitcoin-payment-instructions crate instead. Because it has outbound payment states associated with it it may be some time before we can fully remove all the pieces of it, sadly.

@TheBlueMatt TheBlueMatt added this to the 0.2 milestone Sep 18, 2025
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Sep 18, 2025

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull tnull self-requested a review September 18, 2025 11:43
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.

Cool, thanks!

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

While its cool to have a super trivial API to initiate payment to
a `HumanReadableName`, most wallets ultimately support multiple
payment instruction formats (eg on-chain) or multiple HRN
resolution schemes (eg LN-Address). Thus, we generally don't expect
this API to get a lot of use.

Meanwhile, we've now ended up with both a
`ChannelManager::pay_for_offer_from_hrn` and
`ChannelManager::pay_for_ofer_from_human_readable_name`, which is
incredibly confusing.

Here, we deprecate `pay_for_offer_from_human_readable_name`,
pushing folks to the `bitcoin-payment-instructions` crate instead.
Because it has outbound payment states associated with it it may be
some time before we can fully remove all the pieces of it, sadly.
@TheBlueMatt TheBlueMatt force-pushed the 2025-09-deprecate-direct-chanman-hrn-resolution branch from ab4e768 to cface29 Compare September 18, 2025 11:51
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.60%. Comparing base (07bf08b) to head (cface29).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4083      +/-   ##
==========================================
- Coverage   88.60%   88.60%   -0.01%     
==========================================
  Files         176      176              
  Lines      132086   132086              
  Branches   132086   132086              
==========================================
- Hits       117041   117040       -1     
+ Misses      12376    12372       -4     
- Partials     2669     2674       +5     
Flag Coverage Δ
fuzzing 21.56% <ø> (ø)
tests 88.44% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tnull
Copy link
Contributor

tnull commented Sep 18, 2025

CI failure seems unrelated: #4085

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, simple enough

@tnull tnull merged commit cd85a80 into lightningdevkit:main Sep 18, 2025
24 of 25 checks passed
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.

3 participants