From 39029081ffb0cc00be9d391eb7dbb4ca20f525ee Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 3 Apr 2026 11:16:05 +0000 Subject: [PATCH] Correctly refer to `pay_for_offer_from_hrn` in `pay_for_offer` docs If a `pay_for_offer` call comes in that was for an HRN, downstream code should instead call `pay_for_offer_from_hrn`, not `pay_for_offer`. --- lightning/src/ln/channelmanager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 660875400c7..9d93f443e32 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -14573,7 +14573,8 @@ impl< /// [`bitcoin-payment-instructions` crate](https://docs.rs/bitcoin-payment-instructions/) to /// resolve payment instructions strings (e.g. from QR codes, link opens, pasted instructions, /// or typed instructions) into payment instructions and use this when the instructions resolve - /// to a BOLT 12 offer. + /// to a BOLT 12 offer or [`Self::pay_for_offer_from_hrn`] when they resolve to a BOLT 12 offer + /// via a human-readable name. /// /// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest /// [`InvoiceRequestBuilder`]: crate::offers::invoice_request::InvoiceRequestBuilder