Skip to content

Commit 6ecd7b5

Browse files
committed
Remove redundant bolt11_payment.rs
With `pay_for_bolt11_invoice` now handling payment and route parameter extraction within `ChannelManager`, the utility functions in `bolt11_payment.rs` have become unnecessary. This commit removes the redundant code and associated tests, streamlining the implementation.
1 parent 6fefa66 commit 6ecd7b5

File tree

3 files changed

+0
-221
lines changed

3 files changed

+0
-221
lines changed

lightning/src/ln/bolt11_payment.rs

-216
This file was deleted.

lightning/src/ln/channelmanager.rs

-4
Original file line numberDiff line numberDiff line change
@@ -2032,9 +2032,6 @@ where
20322032
/// # }
20332033
/// ```
20342034
///
2035-
/// For paying an invoice, see the [`bolt11_payment`] module with convenience functions for use with
2036-
/// [`send_payment`].
2037-
///
20382035
/// ```
20392036
/// # use bitcoin::hashes::Hash;
20402037
/// # use lightning::events::{Event, EventsProvider};
@@ -2360,7 +2357,6 @@ where
23602357
/// [`create_bolt11_invoice`]: Self::create_bolt11_invoice
23612358
/// [`create_inbound_payment`]: Self::create_inbound_payment
23622359
/// [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash
2363-
/// [`bolt11_payment`]: crate::ln::bolt11_payment
23642360
/// [`claim_funds`]: Self::claim_funds
23652361
/// [`send_payment`]: Self::send_payment
23662362
/// [`offers`]: crate::offers

lightning/src/ln/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub mod types;
2828
// TODO: These modules were moved from lightning-invoice and need to be better integrated into this
2929
// crate now:
3030
pub mod invoice_utils;
31-
pub mod bolt11_payment;
3231

3332
#[cfg(fuzzing)]
3433
pub mod peer_channel_encryptor;

0 commit comments

Comments
 (0)