Skip to content

Commit 16368c0

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 236e113 commit 16368c0

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
@@ -2041,9 +2041,6 @@ where
20412041
/// # }
20422042
/// ```
20432043
///
2044-
/// For paying an invoice, see the [`bolt11_payment`] module with convenience functions for use with
2045-
/// [`send_payment`].
2046-
///
20472044
/// ```
20482045
/// # use bitcoin::hashes::Hash;
20492046
/// # use lightning::events::{Event, EventsProvider};
@@ -2383,7 +2380,6 @@ where
23832380
/// [`create_bolt11_invoice`]: Self::create_bolt11_invoice
23842381
/// [`create_inbound_payment`]: Self::create_inbound_payment
23852382
/// [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash
2386-
/// [`bolt11_payment`]: crate::ln::bolt11_payment
23872383
/// [`claim_funds`]: Self::claim_funds
23882384
/// [`send_payment`]: Self::send_payment
23892385
/// [`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)