Skip to content

Commit 65ee795

Browse files
committed
Keep pending payment details internal
Stop exporting the pending payment index record from the public payment module. The pending index is an internal persistence detail and should not become public API before this ships. Co-Authored-By: HAL 9000
1 parent 7d9afb3 commit 65ee795

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/payment/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use bolt11::Bolt11Payment;
2020
pub(crate) use bolt11::PaymentMetadata;
2121
pub use bolt12::Bolt12Payment;
2222
pub use onchain::OnchainPayment;
23-
pub use pending_payment_store::PendingPaymentDetails;
23+
pub(crate) use pending_payment_store::PendingPaymentDetails;
2424
pub use spontaneous::SpontaneousPayment;
2525
pub use store::{
2626
ConfirmationStatus, LSPS2Parameters, PaymentDetails, PaymentDirection, PaymentKind,

src/payment/pending_payment_store.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ impl PendingPaymentDetails {
2626
pub(crate) fn new(details: PaymentDetails, conflicting_txids: Vec<Txid>) -> Self {
2727
Self { details, conflicting_txids }
2828
}
29-
30-
/// Convert to finalized payment for the main payment store
31-
pub fn into_payment_details(self) -> PaymentDetails {
32-
self.details
33-
}
3429
}
3530

3631
impl_writeable_tlv_based!(PendingPaymentDetails, {

0 commit comments

Comments
 (0)